1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

log file list to sentry on error

This commit is contained in:
Tim Daubenschütz 2015-08-03 11:09:31 +02:00
parent 63b763dd25
commit 765969c5b3

View File

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