Skip to content

Commit 902ec04

Browse files
committed
Update debug code
1 parent 1f30470 commit 902ec04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/map/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ proto.rejectOnError = function(reject) {
370370

371371
function handler(e) {
372372
console.error('Map error event:', e);
373-
reject(new Error(constants.mapOnErrorMsg));
373+
reject(new Error(e));
374374
}
375375

376376
map.once('error', handler);

src/plots/mapbox/mapbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ proto.rejectOnError = function (reject) {
369369

370370
function handler() {
371371
console.error('Map error event:', e);
372-
reject(new Error(constants.mapOnErrorMsg));
372+
reject(new Error(e));
373373
}
374374

375375
map.once('error', handler);

0 commit comments

Comments
 (0)