This commit is contained in:
2020-07-10 15:38:02 +00:00
parent d0dbc01408
commit 39651cdf6f
3 changed files with 14 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ export default {
msg += "\ncolno: " + colno;
}
if (error) {
if (typeof error === "object") {
error = JSON.stringify(error);
}
msg += "\nerror: " + error;
}
dealWithError(msg);

View File

@@ -39,7 +39,7 @@ export default {
window.$gz.type.BizMetrics,
window.$gz.type.Backup,
window.$gz.type.Notification,
window.$gz.type.NotificationSubscription
window.$gz.type.NotifySubscription
];
vm.appBar.isMain = ctx.isMain;

View File

@@ -24,6 +24,16 @@ export default {
if (pollingInterval > MAX_POLLING_INTERVAL) {
pollingInterval = MAX_POLLING_INTERVAL;
}
//could be a expected issue such as server closed for maintenance
//so no need to freak out if that's the case
if (error.code) {
//is it a normal issue?
if (error.code == 2001) {
return;
}
}
//Nope, totally unexpected, alert the user
window.$gz.errorHandler.handleGeneralError(
"Error checking for notifications",
"notifypoll",