Skip to content

Fix "undefined" in error message #132

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

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Fix "undefined" in error message #132

merged 1 commit into from
Aug 30, 2023

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Aug 29, 2023

I think this happens when detail is undefined. I am not sure if err itself can be undefined but I accounted for that just in case.

I went with detail, then the error message, then the status code, then a final fallback message.

@code-asher code-asher merged commit 0c75216 into main Aug 30, 2023
@code-asher code-asher deleted the undefined-error branch August 30, 2023 18:01
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