view data fixes
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
* Allows developers to replay errors with the exact same context
|
||||
*/
|
||||
|
||||
import { getGlobalErrorHandler } from './GlobalErrorHandler';
|
||||
import { ApiError } from '../gateways/api/base/ApiError';
|
||||
import { getGlobalApiLogger } from './ApiRequestLogger';
|
||||
import { ApiError } from '../api/base/ApiError';
|
||||
import { getGlobalErrorHandler } from './GlobalErrorHandler';
|
||||
|
||||
export interface ReplayContext {
|
||||
timestamp: string;
|
||||
@@ -178,7 +178,7 @@ export class ErrorReplaySystem {
|
||||
const error = replay.error.type === 'ApiError'
|
||||
? new ApiError(
|
||||
replay.error.message,
|
||||
((replay.error.context as { type?: string } | undefined)?.type as import('../api/base/ApiError').ApiErrorType) || 'UNKNOWN_ERROR',
|
||||
((replay.error.context as { type?: string } | undefined)?.type as import('../gateways/api/base/ApiError').ApiErrorType) || 'UNKNOWN_ERROR',
|
||||
{
|
||||
timestamp: replay.timestamp,
|
||||
...(replay.error.context as Record<string, unknown> | undefined),
|
||||
|
||||
Reference in New Issue
Block a user