mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:35:57 +00:00
refactor error reporting to AppBase; keep exception_error() for now as a shim
This commit is contained in:
@@ -58,10 +58,6 @@ require(["dojo/_base/kernel",
|
||||
try {
|
||||
const _App = declare("fox.App", AppBase, {
|
||||
constructor: function() {
|
||||
window.onerror = function (message, filename, lineno, colno, error) {
|
||||
report_error(message, filename, lineno, colno, error);
|
||||
};
|
||||
|
||||
parser.parse();
|
||||
|
||||
this.setLoadingProgress(50);
|
||||
@@ -73,7 +69,7 @@ require(["dojo/_base/kernel",
|
||||
try {
|
||||
this.backendSanityCallback(transport);
|
||||
} catch (e) {
|
||||
exception_error(e);
|
||||
this.Error.report(e);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -149,7 +145,7 @@ require(["dojo/_base/kernel",
|
||||
App = new _App();
|
||||
|
||||
} catch (e) {
|
||||
exception_error(e);
|
||||
this.Error.report(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user