def scan_error
import cli@0.2.0.0/cli.bend as Cliimport Base
2874def scan_error(state: ScanState, fault: ScanFault) -> ScanState:
2875 match state:
2876 case ScanState{scope, events, resting, positional_count,
2877 external, issue}:
2878 ScanState{scope, events, resting, positional_count,
2879 external, first_issue(issue, fault)}