automation-fail-fast-raises-automationerror

Status: IN

`automation(fail_fast=True)` raises `AutomationError` on first module failure; the exception has `.result.module` to identify the failing module.

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

Example

try:
    async with automation(fail_fast=True) as ftl:
        await ftl.command(cmd="false")  # will fail
except AutomationError as e:
    print(f"Module: {e.result.module}")
    print(f"Error: {e.result.error}")

JSON