Skip to content

Commit

Permalink
fix(code): add missing throw
Browse files Browse the repository at this point in the history
  • Loading branch information
crherman7 committed Mar 25, 2024
1 parent e218a07 commit be4d473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-permissions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export default definePlugin<CodePluginPermissions>({
if (!pod?.usageKey) return acc;

if (!curr.text) {
`[CodePermissionsPluginError]: ${pod.pod} permission requires a 'usageKey'.`;
throw Error(
`[CodePermissionsPluginError]: ${pod.pod} permission requires a 'usageKey'.`
);
}

// Exception case for LocationAccuracy permission which requires a purpose key
Expand Down

0 comments on commit be4d473

Please sign in to comment.