From fef26e083ac560b87a24e891c4a1deb817b2d6de Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 2 Aug 2017 15:53:52 -0700 Subject: [PATCH] removed extraneous captureException --- frontend/src/download.js | 2 +- frontend/src/fileSender.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/download.js b/frontend/src/download.js index e9bf9097..b9692401 100644 --- a/frontend/src/download.js +++ b/frontend/src/download.js @@ -144,7 +144,7 @@ $(document).ready(function() { $('#download-btn').attr('hidden', true); $('#expired-img').removeAttr('hidden'); } - return; + throw err; }) .then(([decrypted, fname]) => { const endTime = Date.now(); diff --git a/frontend/src/fileSender.js b/frontend/src/fileSender.js index 6aad32e7..449e5f18 100644 --- a/frontend/src/fileSender.js +++ b/frontend/src/fileSender.js @@ -133,10 +133,6 @@ class FileSender extends EventEmitter { ); xhr.send(fd); }); - }) - .catch(err => { - Raven.captureException(err); - return Promise.reject(err); }); } }