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

Better error handling. #1150

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Better error handling. #1150

merged 3 commits into from
Aug 5, 2023

Conversation

leerob
Copy link
Member

@leerob leerob commented Aug 4, 2023

Updates error.js with better styling, and also fixes this error from using Error in Server Actions:

Warning: Only plain objects can be passed to Client Components from Server Components. Error objects are not supported.
CleanShot.2023-08-04.at.18.24.39.mp4

@vercel
Copy link

vercel bot commented Aug 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
commerce-shopify ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2023 3:21am


export const metadata = {
metadataBase: new URL(baseUrl),
Copy link
Member Author

Choose a reason for hiding this comment

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

This was also throwing a console warning in local dev.

@manovotny manovotny merged commit faa7491 into main Aug 5, 2023
2 checks passed
@manovotny manovotny deleted the error-handling branch August 5, 2023 03:21
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