pub struct ErrorOutput {
pub error: bool,
pub message: String,
pub exit_code: u8,
pub code: Option<String>,
pub help: Option<String>,
}Expand description
Structured JSON error emitted on stdout when --format json is active and a
command fails. It carries no kind discriminator: it is distinguished from
the kind-tagged success envelopes by the required error: true field, and is
a document-root branch alongside FallowOutput and CodeClimateOutput in
docs/output-schema.json. Agents that pass --format json and observe a
non-zero exit code parse this shape from stdout.
Fields§
§error: boolAlways true. The discriminator that separates an error document from a
success envelope (which instead carries a kind).
message: StringHuman-readable error message.
exit_code: u8The process exit code the CLI returns alongside this document.
code: Option<String>Stable machine-readable code such as FALLOW_INVALID_COVERAGE_PATH,
when the failure has one. Present so an agent can branch on the reason
without pattern-matching the human message.
help: Option<String>Remediation hint for the caller, when the failure has one.