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:
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.