-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature/exceptions #293
Conversation
...options, | ||
}); | ||
|
||
this.errorCode = 'INVALID_CREDENTIALS_ERROR'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
Fixes #292 |
Added sentry extra logs and upgrade auth exceptions for RuntimeExceptions
#292