failure.outcome_missing_arm
Outcome match does not handle every failure.
Area 3, Logic; not declinable; the next step is usually the agent's.
function missing_failure(key: LookupKey) -> LookupResult { return match lookup(key) { success(value) -> value LookupMissing -> "missing" }}
error This match doesn't handle LookupRefused
--> main.jadpo:2:12
|2 | return match lookup(key) { | ^^^^^^^^^^^^^^^^^ failures not handled
- reason
lookup(...)can fail withLookupMissingandLookupRefused, and amatchon its outcome has an arm for every one: a value,rejectorpropagate.- next
- Add an arm for
LookupRefused(agent) - rule
- failure.
outcome_ missing_ arm - help
- https://jadpo.
dev/docs/errors/failure. outcome_ missing_ arm
Markdown for agents: /docs/errors/failure.outcome_missing_arm.md.Built from Jadpo main at aee2e8f.