Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f01076c

Browse files
committed
don't clear default mapbox errors,
i.e. just add reject handler on top of existing error logs
1 parent 4ac3d7a commit f01076c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/plots/mapbox/constants.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@ module.exports = {
2222
'More info here: https://www.mapbox.com/help/define-access-token/'
2323
].join('\n'),
2424

25-
mapOnErrorMsg: [
26-
'Mapbox error.',
27-
'Make sure that your mapboxAccessToken is valid'
28-
].join('\n')
25+
mapOnErrorMsg: 'Mapbox error.'
2926
};

src/plots/mapbox/mapbox.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
8888
preserveDrawingBuffer: self.isStatic
8989
});
9090

91-
self.clearOnError();
9291
self.rejectOnError(reject);
9392

9493
map.once('load', function() {

0 commit comments

Comments
 (0)