An ``error`` outcome from ``machines.ask`` (machine_offline/timeout/internal).
| 103 | |
| 104 | |
| 105 | def map_core_error(info: pb.ErrorInfo) -> CmdopError: |
| 106 | code = error_code_name(info.code) |
| 107 | details: Any = None |
| 108 | if info.HasField("details_json"): |
| 109 | try: |
| 110 | details = json.loads(info.details_json) |
| 111 | except ValueError: |
| 112 | details = info.details_json |