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

Adding a new product with the same [name] throws a different error than expected #108

Open
ChoaibMouhrach opened this issue Jan 9, 2024 · 2 comments

Comments

@ChoaibMouhrach
Copy link

When attempting to insert a product with a name that already exists, the error message displayed in the toast is:

An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance, which may provide additional details about the nature of the error.

Instead, the more user-friendly message should be:

Product name is already in use.

@Arkyapatwa
Copy link

Does this happen when we are selling a product and adding the same product for sale?

@ChoaibMouhrach
Copy link
Author

I'm not sure, but throwing errors inside a server action in production is not the same in dev mode

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

No branches or pull requests

2 participants