mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Better error handling. (#1150)
This commit is contained in:
@@ -32,8 +32,8 @@ export default function EditItemQuantityButton({
|
||||
});
|
||||
|
||||
if (error) {
|
||||
alert(error);
|
||||
return;
|
||||
// Trigger the error boundary in the root error.js
|
||||
throw new Error(error.toString());
|
||||
}
|
||||
|
||||
router.refresh();
|
||||
|
Reference in New Issue
Block a user