mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:35:55 +00:00
show alert() if fatal exception happens while initializing base app objects and app.error is not available
This commit is contained in:
@@ -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) {
|
||||
if (App && App.Error)
|
||||
App.Error.report(e);
|
||||
else
|
||||
alert(e + "\n\n" + e.stack);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user