Bladeren bron

docs: add Errors section in transloadit plugin doc

Renée Kooi 6 jaren geleden
bovenliggende
commit
b52c03eadb
1 gewijzigde bestanden met toevoegingen van 13 en 1 verwijderingen
  1. 13 1
      website/src/docs/transloadit.md

+ 13 - 1
website/src/docs/transloadit.md

@@ -10,7 +10,7 @@ category: 'File Processing'
 The `@uppy/transloadit` plugin can be used to upload files to [Transloadit](https://transloadit.com/) for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and much more](https://transloadit.com/services/).
 The `@uppy/transloadit` plugin can be used to upload files to [Transloadit](https://transloadit.com/) for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and much more](https://transloadit.com/services/).
 
 
 > If you're okay to trade some flexibility for ergonomics, consider using
 > If you're okay to trade some flexibility for ergonomics, consider using
-> the [Robodog](/docs/robodog/) Plugin instead, which is a higher-level abstraction for 
+> the [Robodog](/docs/robodog/) Plugin instead, which is a higher-level abstraction for
 > encoding files with Uppy and Transloadit.
 > encoding files with Uppy and Transloadit.
 
 
 <a class="TryButton" href="/examples/transloadit/">Try it live</a>
 <a class="TryButton" href="/examples/transloadit/">Try it live</a>
@@ -274,6 +274,18 @@ strings: {
 }
 }
 ```
 ```
 
 
+## Errors
+
+If an error occurs when an Assembly has already started, you can find the Assembly Status on the error object's `assembly` property.
+
+```js
+uppy.on('error', (error) => {
+  if (error.assembly) {
+    console.log(`${error.assembly.assembly_id} failed!`)
+  }
+})
+```
+
 ## Events
 ## Events
 
 
 ### `transloadit:assembly-created`
 ### `transloadit:assembly-created`