Skip to content

Commit c32ff01

Browse files
authored
Merge pull request #9 from actiontech/fix/audit-rule-execution-failed-message
[chore]: update filed name
2 parents 9913ab6 + b4501b0 commit c32ff01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webapp/packages/core-blocks/src/useErrorDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function useErrorDetails(error: Error | null): HookType {
5151
};
5252
const name = error?.name;
5353
const message = error?.message;
54-
const executionFailedMessage = (error as any)?.execution_failed_message as string;
54+
const executionFailedMessage = (error as any)?.executionFailedMessage as string;
5555

5656
return {
5757
name,

webapp/packages/core-sdk/src/ServerInternalError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class ServerInternalError extends DetailsError implements ServerError {
2424
this.errorCode = error.errorCode;
2525
this.errorType = error.errorType as ServerErrorType;
2626
this.causedBy = error.causedBy;
27-
(this as any).execution_failed_message = (error as any).execution_failed_message;
27+
(this as any).executionFailedMessage = (error as any).executionFailedMessage;
2828
}
2929

3030
hasDetails(): boolean {

0 commit comments

Comments
 (0)