{ "args": "", "askedAt": "2026-10-03T14:18:10+00:00", "compiler": "mojo_1_1_0", "firstItem": "manual/code/manual/errors/test_typed_errors_testing", "key": "8ef817a9673d70999ef655fb3fd1d9d21161d9578a879435608375c09aa9093b", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 288, "executableFilename": "/nosym/tmp/compiler-explorer-compiler72aD4Q/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.09195899963378906, "stderr": [ { "tag": { "column": 6, "file": "example.mojo", "line": 15, "severity": 3, "text": "error: unable to locate module 'typed_errors_testing'" }, "text": ":15:6: error: unable to locate module 'typed_errors_testing'" }, { "text": "from typed_errors_testing import (" }, { "text": " ^" }, { "tag": { "column": 18, "file": "example.mojo", "line": 78, "severity": 3, "text": "error: 'Error' value has no attribute 'field'" }, "text": ":78:18: error: 'Error' value has no attribute 'field'" }, { "text": " field = e.field" }, { "text": " ~^" }, { "tag": { "column": 19, "file": "example.mojo", "line": 79, "severity": 3, "text": "error: 'Error' value has no attribute 'reason'" }, "text": ":79:19: error: 'Error' value has no attribute 'reason'" }, { "text": " reason = e.reason" }, { "text": " ~^" }, { "tag": { "column": 16, "file": "example.mojo", "line": 93, "severity": 3, "text": "error: 'Error' value has no attribute 'key'" }, "text": ":93:16: error: 'Error' value has no attribute 'key'" }, { "text": " key = e.key" }, { "text": " ~^" }, { "tag": { "column": 20, "file": "example.mojo", "line": 94, "severity": 3, "text": "error: 'Error' value has no attribute 'message'" }, "text": ":94:20: error: 'Error' value has no attribute 'message'" }, { "text": " message = e.message" }, { "text": " ~^" }, { "tag": { "column": 18, "file": "example.mojo", "line": 108, "severity": 3, "text": "error: 'Error' value has no attribute 'field'" }, "text": ":108:18: error: 'Error' value has no attribute 'field'" }, { "text": " field = e.field" }, { "text": " ~^" }, { "tag": { "column": 19, "file": "example.mojo", "line": 109, "severity": 3, "text": "error: 'Error' value has no attribute 'reason'" }, "text": ":109:19: error: 'Error' value has no attribute 'reason'" }, { "text": " reason = e.reason" }, { "text": " ~^" }, { "tag": { "column": 14, "file": "example.mojo", "line": 127, "severity": 3, "text": "error: 'Error' value has no attribute 'field'" }, "text": ":127:14: error: 'Error' value has no attribute 'field'" }, { "text": " _ = e.field # Proves type" }, { "text": " ~^" }, { "tag": { "column": 23, "file": "example.mojo", "line": 152, "severity": 3, "text": "error: 'Error' value has no attribute 'reason'" }, "text": ":152:23: error: 'Error' value has no attribute 'reason'" }, { "text": " assert_equal(e.reason, \"cannot be empty\")" }, { "text": " ~^" }, { "tag": { "column": 23, "file": "example.mojo", "line": 158, "severity": 3, "text": "error: 'Error' value has no attribute 'reason'" }, "text": ":158:23: error: 'Error' value has no attribute 'reason'" }, { "text": " assert_equal(e.reason, \"must be at least 3 characters\")" }, { "text": " ~^" }, { "text": "/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": -1, "didExecute": false, "execTime": 367, "okToCache": false, "queueTime": 7, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":15:6: error: unable to locate module 'typed_errors_testing'\nfrom typed_errors_testing import (\n ^\n:78:18: error: 'Error' value has no attribute 'field'\n field = e.field\n ~^\n:79:19: error: 'Error' value has no attribute 'reason'\n reason = e.reason\n ~^\n:93:16: error: 'Error' value has no attribute 'key'\n key = e.key\n ~^\n:94:20: error: 'Error' value has no attribute 'message'\n message = e.message\n ~^\n:108:18: error: 'Error' value has no attribute 'field'\n field = e.field\n ~^\n:109:19: error: 'Error' value has no attribute 'reason'\n reason = e.reason\n ~^\n:127:14: error: 'Error' value has no attribute 'field'\n _ = e.field # Proves type\n ~^\n:152:23: error: 'Error' value has no attribute 'reason'\n assert_equal(e.reason, \"cannot be empty\")\n ~^\n:158:23: error: 'Error' value has no attribute 'reason'\n assert_equal(e.reason, \"must be at least 3 characters\")\n ~^\n/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module", "compiled": false, "executed": false, "exitCode": -1, "stderr": "Build failed", "stdout": "", "timedOut": false }, "seconds": 0.58, "sourceSha256": "6ed21a4bbcd317b1b3931cfe9b96054d777ba78a5327ca8ee673bce5839fc727", "stdin": "" }