Skip to content

Commit 7bafa5f

Browse files
alexs-mparticlegtamanaha
authored andcommitted
Introduce IDENTITY_REQUEST error code and update error logging for identity requests
1 parent 692b4a7 commit 7bafa5f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/identityApiClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function IdentityAPIClient(
306306

307307
Logger.error(
308308
'Error sending identity request to servers' + ' - ' + errorMessage,
309-
ErrorCodes.UNHANDLED_EXCEPTION
309+
ErrorCodes.IDENTITY_REQUEST
310310
);
311311
invokeCallback(
312312
callback,

src/logging/errorCodes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export type ErrorCodes = valueof<typeof ErrorCodes>;
55
export const ErrorCodes = {
66
UNKNOWN_ERROR: 'UNKNOWN_ERROR',
77
UNHANDLED_EXCEPTION: 'UNHANDLED_EXCEPTION',
8+
IDENTITY_REQUEST: 'IDENTITY_REQUEST',
89
} as const;

0 commit comments

Comments
 (0)