Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/exceptions #293

Merged
merged 6 commits into from
Oct 17, 2024
Merged

Feature/exceptions #293

merged 6 commits into from
Oct 17, 2024

Conversation

tnramalho
Copy link
Collaborator

Added sentry extra logs and upgrade auth exceptions for RuntimeExceptions
#292

...options,
});

this.errorCode = 'INVALID_CREDENTIALS_ERROR';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the code should have the AUTH_LOCAL_ prefix

...options,
});

this.errorCode = 'INVALID_LOGIN_DATA_ERROR';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the code should have the AUTH_LOCAL_ prefix

private handleHttpException(exception: HttpException, extras: Extras): void {
const res = exception.getResponse();
extras.statusCode = exception.getStatus();
extras.errorCode = mapHttpStatus(extras.statusCode as number);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove the as type hint

@MrMaz MrMaz merged commit d333d80 into conceptadev:main Oct 17, 2024
1 of 2 checks passed
@MrMaz
Copy link
Collaborator

MrMaz commented Oct 21, 2024

Fixes #292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants