diff --git a/frontend/src/utils/toolErrorHandler.ts b/frontend/src/utils/toolErrorHandler.ts index eb230cf55..87b1aed61 100644 --- a/frontend/src/utils/toolErrorHandler.ts +++ b/frontend/src/utils/toolErrorHandler.ts @@ -78,7 +78,8 @@ export const extractErrorMessage = (error: unknown): string => { */ export const createStandardErrorHandler = (fallbackMessage: string) => { return (error: unknown): string => { - return extractErrorMessage(error) || fallbackMessage; + const message = extractErrorMessage(error); + return message === 'Operation failed' ? fallbackMessage : message; }; };