When calling an errback from a Promise.catch, pass err.message

This commit is contained in:
Bryan Housel
2019-04-25 21:58:36 -04:00
parent 3e363fed8b
commit b99be67169
11 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -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) {