Skip to content

Update Next.js Responses to Display Full Error Message #655

@suzuhe481

Description

@suzuhe481

When errors are caught while making API calls, the thrown errors are sometimes not detailed enough or incorrect. The error that was caught should be what is thrown so it can be logged and viewed in Vercel's logs. This will allow us to see what the actual errors are.

Example of Current Implementation

When catching an error, throw it's actual message instead of creating a custom one.
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions