diff --git a/webapp/packages/core-blocks/src/useErrorDetails.tsx b/webapp/packages/core-blocks/src/useErrorDetails.tsx index ae3b01eff47..953b6b4e762 100644 --- a/webapp/packages/core-blocks/src/useErrorDetails.tsx +++ b/webapp/packages/core-blocks/src/useErrorDetails.tsx @@ -51,7 +51,7 @@ export function useErrorDetails(error: Error | null): HookType { }; const name = error?.name; const message = error?.message; - const executionFailedMessage = (error as any)?.execution_failed_message as string; + const executionFailedMessage = (error as any)?.executionFailedMessage as string; return { name, diff --git a/webapp/packages/core-sdk/src/ServerInternalError.ts b/webapp/packages/core-sdk/src/ServerInternalError.ts index 16e175a16ce..a4de863dcaa 100644 --- a/webapp/packages/core-sdk/src/ServerInternalError.ts +++ b/webapp/packages/core-sdk/src/ServerInternalError.ts @@ -24,7 +24,7 @@ export class ServerInternalError extends DetailsError implements ServerError { this.errorCode = error.errorCode; this.errorType = error.errorType as ServerErrorType; this.causedBy = error.causedBy; - (this as any).execution_failed_message = (error as any).execution_failed_message; + (this as any).executionFailedMessage = (error as any).executionFailedMessage; } hasDetails(): boolean {