ARKI_FAILURE_E001
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
`defineFailure` got an empty code, or the reserved code `ok`.
Fix
Give the failure a non-empty dotted code such as `post.not_found`, and not `ok`.
Check the fix
bun run test -- src/failure.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/failure
- Version
- 0.2.0 · next release candidate
- Source
- src/errors.ts:17