Convert throwHumanError to custom error type
Now with 200% more helpful stack traces. // FREEBIE
This commit is contained in:
parent
e86c40d3a8
commit
3711e0a6cd
6 changed files with 111 additions and 128 deletions
|
@ -82,7 +82,7 @@
|
|||
bg.openInbox();
|
||||
window.close();
|
||||
}).catch(function(e) {
|
||||
if (e.name === 'HTTPError' && e.message == 411) {
|
||||
if (e.name === 'HTTPError' && e.code == 411) {
|
||||
$('.progress-dialog').hide();
|
||||
$('.error-dialog').show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue