diff options
author | Andrew Dolgov <[email protected]> | 2019-12-14 09:39:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-14 09:39:44 +0300 |
commit | 0d6add5d7f9475d60330f233a6b62f9bb81d01c0 (patch) | |
tree | b8821e566da153a6c17eaf2c9437b7513a2f0173 /js/tt-rss.js | |
parent | e146a1ab3717ae8132fed886d7383b19b3d04e23 (diff) |
show alert() if fatal exception happens while initializing base app objects and app.error is not available
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 5e044625d..8868fa7a5 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -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); } }); }); |