mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Move logging of upload errors to be before cancellation of uploads
Although logging isn’t affected by the cancelation of uploads, it may cause confusion for readers if the uploads are cancelled before the error is logged.
This commit is contained in:
parent
7bc5492236
commit
eae22a2e04
@ -457,13 +457,13 @@ let ReactS3FineUploader = React.createClass({
|
||||
},
|
||||
|
||||
onError(id, name, errorReason) {
|
||||
this.cancelUploads();
|
||||
|
||||
console.logGlobal(errorReason, false, {
|
||||
files: this.state.filesToUpload,
|
||||
chunks: this.state.chunks
|
||||
});
|
||||
|
||||
this.cancelUploads();
|
||||
|
||||
let notification = new GlobalNotificationModel(errorReason || this.props.defaultErrorMessage, 'danger', 5000);
|
||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user