diff --git a/src/utils/error-report/ErrorData.ts b/src/utils/error-report/ErrorData.ts index 64ef0f630a0b951f1698ae209f2a642b899d293a..3d807d9e0f944503ed56c92e0cdd7459d1c77fa2 100644 --- a/src/utils/error-report/ErrorData.ts +++ b/src/utils/error-report/ErrorData.ts @@ -6,6 +6,7 @@ export type ErrorData = { timestamp: number | null; version: string | null; comment: string | null; + message: string; stacktrace: string; javaStacktrace: string | null; }; diff --git a/src/utils/error-report/errorReporting.ts b/src/utils/error-report/errorReporting.ts index e457bc5c54555371d0411783d468806dd2c55c6b..da42c8e510cec2ec569012fd820a6b364ac0d840 100644 --- a/src/utils/error-report/errorReporting.ts +++ b/src/utils/error-report/errorReporting.ts @@ -16,8 +16,10 @@ export const createErrorData = async ( state: RootState, ): Promise<ErrorData> => { let stacktrace = ''; + let message = ''; if (error !== undefined) { stacktrace = error.stack !== undefined ? error.stack : ''; + message = error.message !== undefined ? error.message : ''; } let login = null; @@ -68,5 +70,6 @@ export const createErrorData = async ( stacktrace, timestamp: Math.floor(+new Date() / ONE_THOUSAND), version, + message, }; };