ソースを参照

transloadit: Emit `core:upload-error` if file cannot be added to assembly

Renée Kooi 7 年 前
コミット
13ac3350a4
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/plugins/Transloadit/index.js

+ 2 - 1
src/plugins/Transloadit/index.js

@@ -199,7 +199,8 @@ module.exports = class Transloadit extends Plugin {
     const assembly = this.state.assemblies[file.transloadit.assembly]
     const assembly = this.state.assemblies[file.transloadit.assembly]
 
 
     this.client.addFile(assembly, file).catch((err) => {
     this.client.addFile(assembly, file).catch((err) => {
-      console.error('ignoring', err)
+      this.core.log(err)
+      this.core.emit('core:upload-error', file.id, err)
     })
     })
   }
   }