We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f3230 commit 40cb0c0Copy full SHA for 40cb0c0
src/util/error.ts
@@ -76,11 +76,15 @@ export const throwAndDelegateError = (
76
);
77
throw new ServerError(DELEGATE_TO_FRONTEND_CODE, errorType);
78
}
79
- throw new ServerError(500, 'An internal error occurred');
+ throw new ServerError(
80
+ 500,
81
+ `An internal error occurred: ${JSON.stringify(error)}`,
82
+ );
83
};
84
85
export class DelegateToFrontedError extends ServerError {
86
errorType: IntegrationErrorType;
87
+
88
constructor(errorType: IntegrationErrorType) {
89
super(DELEGATE_TO_FRONTEND_CODE, errorType);
90
0 commit comments