Better error handling. (#1150)

This commit is contained in:
Lee Robinson
2023-08-04 22:21:57 -05:00
committed by GitHub
parent c3f3936732
commit faa7491a55
8 changed files with 76 additions and 65 deletions

View File

@@ -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();