We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Server crashes when a non existent api is called on server. Error occurs in error parsing step. Specifically on below lines.
func ParseError(err error) ProblemDetailErr { stackTrace := errorUtils.ErrorsWithStack(err) customErr := customErrors.GetCustomError(err) var validatorErr validator.ValidationErrors
if err != nil { switch { case customErrors.IsDomainError(err, customErr.Status()): return NewDomainProblemDetail(customErr.Status(), customErr.Error(), stackTrace)
2nd line of function returns nil when we try to create custom error. and subsequent calls on nil causes panic which causes crash.
The text was updated successfully, but these errors were encountered:
Welcome to go-ecommerce-microservices. Thank you for reporting your first issue. Please check out our contributor guide.
Sorry, something went wrong.
Hi, Thanks for reporting, I probably missed that. I will fix it in the next release.
No branches or pull requests
Server crashes when a non existent api is called on server. Error occurs in error parsing step. Specifically on below lines.
func ParseError(err error) ProblemDetailErr {
stackTrace := errorUtils.ErrorsWithStack(err)
customErr := customErrors.GetCustomError(err)
var validatorErr validator.ValidationErrors
2nd line of function returns nil when we try to create custom error. and subsequent calls on nil causes panic which causes crash.
The text was updated successfully, but these errors were encountered: