automation-error-has-result-attribute

Status: IN

`AutomationError` has `message` (str) and `result` (the failed `ExecuteResult`) attributes, enabling granular error inspection per host and module.

Source: entries/2026/05/11/examples-06-automation-context-example_phase6_error_handling.md

Example

except AutomationError as e:
    print(f"Message: {e.message}")
    print(f"Module: {e.result.module}")
    print(f"Host: {e.result.host}")
    print(f"Error: {e.result.error}")
    print(f"Changed: {e.result.changed}")

JSON