ARKI_FAILURE_E004

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

`unreachable` was reached, so a value the types said could not happen did happen (often bad data from outside).

Fix

Handle the new case in the `switch`, or validate the data at the boundary.

Check the fix

bun run test -- src/handle.test.ts

Run 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:38