Avoid unexpected error displays from web gui
Unexpected error is seen from the web gui due to the connection
loss during below known scenarios:
1. Initiating Reboot BMC from web gui
2. Restart of the nginx service
3. Trying to login to the web gui after a long idle time
Fix avoids unexpected error display from web gui.
Resolves openbmc/openbmc#3211
Tested: Running GUI locally and verified that unexpected error is not
coming when BMC reboots
Change-Id: I93974c53ab4fb414b938229d39fdf872b45a3e2c
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
diff --git a/app/common/directives/app-header.js b/app/common/directives/app-header.js
index d15697b..d9fc54c 100644
--- a/app/common/directives/app-header.js
+++ b/app/common/directives/app-header.js
@@ -39,7 +39,7 @@
}
},
function(error) {
- dataService.activateErrorModal();
+ console.log(error);
});
};