failure.invalid_envelope
failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.
What happened
An external envelope cannot be trusted as a known failure.
Fix
Send a supported failure envelope with validated JSON data.
Check the fix
bun run test -- src/revive.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/foundations.ts:115