Skip to main content

emit_workflow_error

Function emit_workflow_error 

Source
pub fn emit_workflow_error(err: &WorkflowError) -> Result<String, EmitError>
Expand description

Serialize a workflow / chain failure as stderr JSON (WORKFLOW_ERROR, exit 9).

Always uses ErrorCode::WorkflowError — no hand-built slug.

§Errors

Returns EmitError::Serialize when the envelope cannot be serialized.