Skip to content
Snippets Groups Projects
Commit ab7aaed2 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: handle state change error

parent dd44479f
No related branches found
No related tags found
No related merge requests found
......@@ -250,6 +250,13 @@ module.exports = (app) => {
$urlRouterProvider.otherwise('/');
}]);
app.run(($rootScope, $state) => {
$rootScope.$on('$stateChangeError', (event, toState, toParams, fromState, fromParams, error) => {
console.error(error);
$state.go('error', { err: error.message });
});
});
function resolveNetworkAutoConf(BMA) {
return co(function *() {
let netinterfaces = yield BMA.webmin.network.interfaces();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment