Skip to content

Commit

Permalink
return WebrpcRequestFailed for aborting
Browse files Browse the repository at this point in the history
  • Loading branch information
umitcanbal committed Nov 30, 2023
1 parent 29f766a commit b1a2ad6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _examples/golang-sse/webapp/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ export class Chat implements Chat {
options.onError(error);
}
).catch((error) => {
options.onError(error)
options.onError(
WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ""}`,
}))
})
};
}
Expand Down

0 comments on commit b1a2ad6

Please sign in to comment.