Skip to content

Commit

Permalink
docs: error format also required for non-blocking (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGoberling authored Jun 28, 2024
1 parent 1824269 commit 1b8d03f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/guides/using/creating_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ You can also set cookies or cache control headers, perform a HTTP redirect, and

### Unsuccessful response

On failed web action invocations, the error code and message should be wrapped in an `error` object, as this would allow the system to interpret the response as an `applicationError`.
On failed action invocations, the error code and message should be wrapped in an `error` object, as this would allow the system to interpret the response as an `applicationError`.

```javascript
function main(params) {
async function main(params) {
try {
throw new Error("Boom!")
} catch (err) {
Expand Down

0 comments on commit 1b8d03f

Please sign in to comment.