don't show error page on upload cancel

This commit is contained in:
Daniela Arcese 2017-07-25 10:35:09 -04:00
parent 5a564e2c37
commit ba277b9382
2 changed files with 2102 additions and 301 deletions

View file

@ -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);

2398
package-lock.json generated

File diff suppressed because it is too large Load diff