Commit 1373fe2
committed
fix(secrets): use getErrorMessage for the visibility-change toast
CI's check:audits gate caught a documented rule violation: CLAUDE.md says
never write `e instanceof Error ? e.message : 'fallback'`, use
getErrorMessage(e, fallback?) from @sim/utils/errors. The visibility-change
handler did exactly the banned form.
Worth noting for next time: check:audits is not part of `bun run check`, so a
local run of check + lint + type-check + tests passes while CI fails.1 parent 633eb5e commit 1373fe2
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- apps/sim/app/workspace/[workspaceId]/settings/components/secrets/components/secrets-manager
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
470 | | - | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
0 commit comments