mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
When calling an errback from a Promise.catch, pass err.message
This commit is contained in:
@@ -288,7 +288,7 @@ rendererBackgroundSource.Bing = function(data, dispatch) {
|
||||
})
|
||||
.catch(function(err) {
|
||||
delete inflight[tileID];
|
||||
if (callback) callback(err);
|
||||
if (callback) callback(err.message);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -457,9 +457,9 @@ rendererBackgroundSource.Esri = function(data) {
|
||||
cache[tileID].metadata = metadata;
|
||||
if (callback) callback(null, metadata);
|
||||
})
|
||||
.catch(function(error) {
|
||||
.catch(function(err) {
|
||||
delete inflight[tileID];
|
||||
if (callback) callback(error);
|
||||
if (callback) callback(err.message);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user