failure.duplicate_context_field
Failure field is given twice.
Area 4, Failures; not declinable; the next step is usually the agent's.
type Lookup = Text {}type Missing = Failure { kind: FailureKind.not_found internal: { lookup: Lookup }}action find(lookup: Lookup) fails Missing -> Lookup { reject Missing { lookup: lookup lookup: lookup }}
error lookup is given twice
--> main.jadpo:13:9
|12 | lookup: lookup | ------ first given here13 | lookup: lookup | ^^^^^^ given again
- reason
- Each field of
Missingis given once, so the log and the client never have to guess which value counts. - next
- Remove one
lookup(agent) - rule
- failure.
duplicate_ context_ field - help
- https://jadpo.
dev/docs/errors/failure. duplicate_ context_ field
Markdown for agents: /docs/errors/failure.duplicate_context_field.md.Built from Jadpo main at aee2e8f.