midad explain

midad explain [CODE] [--json]

Every refusal midad makes carries a code. midad explain CODE prints what that code means and what to do:

$ midad explain E0402
E0402 (error)
  `{}` mounts a route but is not under `routes/`
  fix: move it to `routes/{name}.md`, or move its `route:` blocks into the entry
  file if it is meant to be the entry's own handler

With no code it prints every code, one line each, and --json gives the rows as objects with code, severity, message and fix.

The table it reads is embedded in the binary and it is the same table docs/DIAGNOSTICS.md shows, so the answer here and the answer in the repository cannot drift. A {} in a message is where the checker fills in what it saw.

The diagnostics reference is this table rendered as pages, one per code, generated at build time.

On this page