1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

add logging for complete as well

This commit is contained in:
Tim Daubenschütz 2015-08-03 18:50:14 +02:00
parent 4bf21e1afd
commit ae8bc674d2

View File

@ -354,6 +354,12 @@ var ReactS3FineUploader = React.createClass({
onComplete(id, name, res, xhr) {
// there has been an issue with the server's connection
if(xhr.status === 0) {
console.logGlobal(new Error('Complete was called but there wasn\t a success'), false, {
files: this.state.filesToUpload,
chunks: this.state.chunks
});
return;
}