Skip to content

Commit

Permalink
🥅 add configuration error
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonaOna committed May 22, 2024
1 parent 59bcd55 commit 770a6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/integration-error.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum IntegrationErrorType {
INTEGRATION_ERROR_FORBIDDEN = 'integration/error/forbidden',
INTEGRATION_ERROR_UNAVAILABLE = 'integration/error/unavailable',
INTEGRATION_ERROR_LICENSE_ACCESS_LIMITED = 'integration/error/license-access-limited',
INTEGRATION_CONFIGURATION_ERROR = 'integration/configuration-error',

ENTITY_ERROR_CONFLICT = 'entity/error/conflict',
ENTITY_NOT_FOUND = 'entity/not-found',
Expand Down
1 change: 1 addition & 0 deletions src/util/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const throwAndDelegateError = (
'throwAndDelegateError',
`Delegating crm error to frontend with code ${DELEGATE_TO_FRONTEND_CODE} and type ${errorType}`,
apiKey,
logMessage,
);
throw new ServerError(DELEGATE_TO_FRONTEND_CODE, errorType);
}
Expand Down

0 comments on commit 770a6e1

Please sign in to comment.