Skip to content

Commit

Permalink
fix README documentation of error handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarWKH committed Aug 23, 2020
1 parent cf44f9e commit 1b141a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ The `initProgressBar` function takes an optional object of options. The followin
| resultElement | Override the *element* used for the result. If specified, resultElementId will be ignored. | document.getElementById(resultElementId) |
| onProgress | function to call when progress is updated | CeleryProgressBar.onProgressDefault |
| onSuccess | function to call when progress successfully completes | CeleryProgressBar.onSuccessDefault |
| onError | function to call when on a known error with no specified handler | CeleryProgressBar.onErrorDefault |
| onError | function to call on a known error with no specified handler | CeleryProgressBar.onErrorDefault |
| onTaskError | function to call when progress completes with an error | onError |
| onNetworkError | function to call on a network error (ignored by WebSocket) | onError |
| onHttpError | function to call on a non-200 response (ignored by WebSocket) | onError |
| onDataError | function to call on a 200 response that's not JSON or has invalid schema due to a programming error | onError (ignored by WebSocket) |
| onDataError | function to call on a 200 response that's not JSON or has invalid schema due to a programming error (ignored by WebSocket) | onError |
| onResult | function to call when returned non empty result | CeleryProgressBar.onResultDefault |


Expand Down

0 comments on commit 1b141a1

Please sign in to comment.