Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: issue-reporter.js

Issue 29587629: Issue 5896 - Simplify error handling in the issue reporter (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created Oct. 24, 2017, 12:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: issue-reporter.js
===================================================================
--- a/issue-reporter.js
+++ b/issue-reporter.js
@@ -222,18 +222,17 @@ function initDataCollector()
retrieveSubscriptions()
];
return Promise.all(handlers);
}).then(() =>
{
setCurrentPage("typeSelectorPage");
}).catch(e =>
{
- if (!e.name && e.message)
- e = e.message;
+ console.error(e);
alert(e);
window.close();
});
}
function initTypeSelector()
{
document.getElementById("typeFalsePositive").focus();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld