diff --git a/apps/playground/src/components/chat/MessageBubble.tsx b/apps/playground/src/components/chat/MessageBubble.tsx index 3fdf0f9..ef697e8 100644 --- a/apps/playground/src/components/chat/MessageBubble.tsx +++ b/apps/playground/src/components/chat/MessageBubble.tsx @@ -94,13 +94,13 @@ export function MessageBubble({ )} {/* Tool Error */} - {toolPart.error && ( + {(toolPart.errorText || toolPart.error) && (
- {typeof toolPart.error === 'string'
- ? toolPart.error
- : JSON.stringify(toolPart.error, null, 2)}
+ {typeof (toolPart.errorText || toolPart.error) === 'string'
+ ? toolPart.errorText || toolPart.error
+ : JSON.stringify(toolPart.errorText || toolPart.error, null, 2)}