Skip to content

Commit c2969da

Browse files
committed
replace reject(Error()) by reject(new Error())
1 parent f5384ba commit c2969da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/geo/geo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ proto.plot = function(geoData, fullLayout, promises) {
104104
d3.json(topojsonPath, function(error, topojson) {
105105
if(error) {
106106
if(error.status === 404) {
107-
reject(Error([
107+
reject(new Error([
108108
'plotly.js could not find topojson file at',
109109
topojsonPath, '.',
110110
'Make sure the *topojsonURL* plot config option',
111111
'is set properly.'
112112
].join(' ')));
113113
}
114114
else {
115-
reject(Error([
115+
reject(new Error([
116116
'unexpected error while fetching topojson file at',
117117
topojsonPath
118118
].join(' ')));

0 commit comments

Comments
 (0)