Commit ade62f2
committed
fix(xl-ai): preserve error messages in ClientSideTransport stream
The AI SDK changed toUIMessageStream()'s default onError to return a
generic "An error occurred." instead of the real message (to prevent
leaking server details). Since ClientSideTransport runs entirely
client-side, explicitly pass onError to surface the original error.1 parent 69f84f8 commit ade62f2
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
0 commit comments