diff --git a/src/pages/playground/config/index.ts b/src/pages/playground/config/index.ts index 735dfe80..d24f7d5f 100644 --- a/src/pages/playground/config/index.ts +++ b/src/pages/playground/config/index.ts @@ -175,7 +175,7 @@ export const extractErrorMessage = (result: any) => { result?.error?.message || result?.data; if (errorMsg) { - return errorMsg; + return typeof errorMsg === 'string' ? errorMsg : JSON.stringify(errorMsg); } try { return typeof result === 'string' ? result : JSON.stringify(result);