Skip to content

Commit d1c19fc

Browse files
committed
Make the timeout error safer
1 parent 455f5a2 commit d1c19fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/trigger-sdk/src/v3/wait.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ export const wait = {
785785
output: data,
786786
};
787787
} else {
788-
const error = new WaitpointTimeoutError(data.message);
788+
const error = new WaitpointTimeoutError(data?.message ?? "Timeout error");
789789

790790
span.recordException(error);
791791
span.setStatus({

0 commit comments

Comments
 (0)