Skip to main content

error_json

Function error_json 

Source
pub fn error_json(err: &Error) -> Value
Expand description

The --json error object: the SAME human message [render::error_lines] produces (joined, without the leading “Error: “), plus the control-API JSON-RPC code when the failure came from the daemon — the machine-branchable field the human path deliberately hides.