Skip to content

Commit

Permalink
Show report dialog on client side JS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thefinn93 committed Nov 25, 2016
1 parent 1139b59 commit 9401644
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piston/static/js/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ function onSubmit(e) {
document.querySelector(".approval-form").submit();
}).catch((e) => {
var exception = Raven.captureException(e);
exception.showReportDialog();
console.log(e, exception);
});
});
}
}).catch((e) => {
var exception = Raven.captureException(e);
exception.showReportDialog();
console.log(e, exception);
});
}
Expand Down

0 comments on commit 9401644

Please sign in to comment.