Aurelia 1.x Q&A - Sandbox at https://codesandbox.io/s/aurelia-javascript-sandbox-jnl6q85zq5
3cp on rm-esprima
3cp on master
chore: upgrade deps fix(cli-bundler): fix error on … (compare)
3cp on rm-esprima
chore: upgrade deps fix(cli-bundler): fix error on … (compare)
paths
in config
I'm trying to catch errors in Aurelia plugin initialization and I found I can catch them in the failure callback of aurelia.start()
, then I set up the failure callback as:
aurelia.start().then(a => {
a.setRoot('index');
}, a => {
console.debug(a);
console.debug(arguments[0]);
});
and the weird thing is that the debug of a
is HttpResponseMessage
but the debug of arguments[0]
is Aurelia
; how's that possibile?
a.setRoot('error')
to display a ViewModel with the error message.)