Catch chainpad errors and display it in the UI

This commit is contained in:
yflory
2018-03-13 14:38:56 +01:00
parent b2df2ba341
commit e56d762409
6 changed files with 37 additions and 8 deletions

View File

@@ -2066,12 +2066,12 @@ define([
if (err.type === 'EEXPIRED') {
msg = Messages.expiredError;
if (err.loaded) {
msg += Messages.expiredErrorCopy;
msg += Messages.errorCopy;
}
} else if (err.type === 'EDELETED') {
msg = Messages.deletedError;
if (err.loaded) {
msg += Messages.expiredErrorCopy;
msg += Messages.errorCopy;
}
}
if (toolbar && typeof toolbar.deleted === "function") { toolbar.deleted(); }