From 765969c5b3d0979bc98eb32d1c61bc2d4d26b531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 3 Aug 2015 11:09:31 +0200 Subject: [PATCH] log file list to sentry on error --- js/components/ascribe_uploader/react_s3_fine_uploader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index c3ba48b4..7433cbd0 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -356,7 +356,10 @@ var ReactS3FineUploader = React.createClass({ }, onError(id, name, errorReason) { - Raven.captureException(errorReason, false, this.state.filesToUpload); + + console.logGlobal(errorReason, false, this.state.filesToUpload); + this.state.uploader.cancelAll(); + let notification = new GlobalNotificationModel(this.props.defaultErrorMessage, 'danger', 5000); GlobalNotificationActions.appendGlobalNotification(notification); },