diff --git a/packages/dashboard-frontend/src/store/SanityCheck/index.ts b/packages/dashboard-frontend/src/store/SanityCheck/index.ts index 9d0ee5a64..b43807b09 100644 --- a/packages/dashboard-frontend/src/store/SanityCheck/index.ts +++ b/packages/dashboard-frontend/src/store/SanityCheck/index.ts @@ -12,6 +12,7 @@ import { Action, Reducer } from 'redux'; import { AppThunk } from '..'; +import { helpers } from '@eclipse-che/common'; import { container } from '../../inversify.config'; import { getDefer } from '../../services/helpers/deferred'; import { delay } from '../../services/helpers/delay'; @@ -118,6 +119,14 @@ export const actionCreators: ActionCreators = { type: Type.RECEIVED_BACKEND_CHECK_ERROR, error: errorMessage, }); + console.error(helpers.errors.getMessage(e)); + if ( + helpers.errors.includesAxiosResponse(e) && + e.response.data.trace && + Array.isArray(e.response.data.trace) + ) { + console.error(e.response.data.trace.join('\n')); + } throw new Error(errorMessage); } },