This commit is contained in:
@@ -67,6 +67,9 @@ export default {
|
||||
msg += "\ncolno: " + colno;
|
||||
}
|
||||
if (error) {
|
||||
if (typeof error === "object") {
|
||||
error = JSON.stringify(error);
|
||||
}
|
||||
msg += "\nerror: " + error;
|
||||
}
|
||||
dealWithError(msg);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user