show alert() if fatal exception happens while initializing base app objects and app.error is not available
This commit is contained in:
parent
e146a1ab37
commit
0d6add5d7f
|
@ -155,7 +155,10 @@ require(["dojo/_base/kernel",
|
|||
App = new _App();
|
||||
|
||||
} catch (e) {
|
||||
this.Error.report(e);
|
||||
if (App && App.Error)
|
||||
App.Error.report(e);
|
||||
else
|
||||
alert(e + "\n\n" + e.stack);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -592,7 +592,10 @@ require(["dojo/_base/kernel",
|
|||
|
||||
App = new _App();
|
||||
} catch (e) {
|
||||
App.Error.report(e);
|
||||
if (App && App.Error)
|
||||
App.Error.report(e);
|
||||
else
|
||||
alert(e + "\n\n" + e.stack);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue