Skip to content

Commit 1c50671

Browse files
Clarify onError normalization behavior in streams docs
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 58b6dc3 commit 1c50671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tasks/streams.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ The default payload sent to your task is a rich, typed object that includes:
619619

620620
`onError` receives phase-aware details (`payloadMapper`, `triggerOptions`, `triggerTask`,
621621
`onTriggeredRun`, `consumeTrackingStream`, `reconnect`) plus `chatId`, optional `runId`,
622-
and the underlying `error`.
622+
and the underlying `error` (non-Error throws are normalized to `Error` instances).
623623

624624
```ts
625625
import type { TriggerChatRunState, TriggerChatRunStore } from "@trigger.dev/ai";

0 commit comments

Comments
 (0)