mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
When calling an errback from a Promise.catch, pass err.message
This commit is contained in:
@@ -442,7 +442,7 @@ export function coreContext() {
|
||||
if (callback) callback();
|
||||
})
|
||||
.catch(function(err) {
|
||||
if (callback) callback(err);
|
||||
if (callback) callback(err.message);
|
||||
});
|
||||
} else {
|
||||
if (locale) {
|
||||
|
||||
Reference in New Issue
Block a user