Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
don't show error page on upload cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
dnarcese committed Jul 25, 2017
1 parent 5a564e2 commit 6653442
Show file tree
Hide file tree
Showing 2 changed files with 2,104 additions and 303 deletions.
5 changes: 5 additions & 0 deletions frontend/src/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ $(document).ready(function() {
});
})
.catch(err => {
// err is 0 when coming from a cancel upload event
if (err == 0) {
return;
}
// only show error page when the error is anything other than user cancelling the upload
Raven.captureException(err);
$('#page-one').attr('hidden', true);
$('#upload-progress').attr('hidden', true);
Expand Down
Loading

0 comments on commit 6653442

Please sign in to comment.