Skip to content

Commit

Permalink
Clearer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Apr 3, 2024
1 parent db44102 commit 66e4225
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function BalanceMenu({
onCarryover?.(!carryover);
break;
default:
throw new Error(`Unsupported item: ${name}`);
throw new Error(`Unrecognized menu option: ${name}`);
}
}}
items={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function BalanceMenu({
onCover?.();
break;
default:
throw new Error(`Unsupported item: ${name}`);
throw new Error(`Unrecognized menu option: ${name}`);
}
}}
items={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function ToBudgetMenu({
onResetHoldBuffer?.();
break;
default:
throw new Error(`Unsupported item: ${name}`);
throw new Error(`Unrecognized menu option: ${name}`);
}
}}
items={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function AdditionalAccountMenu({ account, onClose, onReopen }) {
onReopen?.(account.id);
break;
default:
throw new Error(`Unsupported item: ${name}`);
throw new Error(`Unrecognized menu option: ${name}`);
}
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ScheduledTransactionMenu({
onSkip?.(transactionId);
break;
default:
throw new Error(`Unsupported item: ${name}`);
throw new Error(`Unrecognized menu option: ${name}`);
}
}}
items={[
Expand Down

0 comments on commit 66e4225

Please sign in to comment.