1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 09:35:55 +00:00

simplify error handling

* less convoluted exception dialogs
* use window.onerror for the majority of exception catching/reporting
* remove most of now useless try/catch blocks
* report stacktrace instead of manually specified error locations
This commit is contained in:
Andrew Dolgov
2017-03-04 14:34:44 +03:00
parent e6d66fe55c
commit 1bfe1d7b31
10 changed files with 3791 additions and 4593 deletions

View File

@@ -302,7 +302,7 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
}
}
} catch (e) {
exception_error("expandParentNodes", e);
exception_error(e);
}
},
findNodeParentsAndExpandThem: function(feed, is_cat, root, parents) {
@@ -341,7 +341,7 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
}
}
} catch (e) {
exception_error("findNodeParentsAndExpandThem", e);
exception_error(e);
}
},
selectFeed: function(feed, is_cat) {