Files
pplus-web/mojo/golden/9961cab419f780ef749a252d40df66b6009c333f5753d1fa11445e09cd43768d.json
T
2026-10-05 03:03:38 +00:00

106 lines
3.3 KiB
JSON

{
"args": "",
"askedAt": "2026-10-03T14:18:10+00:00",
"compiler": "mojo_1_1_0",
"firstItem": "manual/code/manual/errors/test_typed_errors_doc",
"key": "9961cab419f780ef749a252d40df66b6009c333f5753d1fa11445e09cd43768d",
"mode": "run",
"raw": {
"buildResult": {
"code": 1,
"compilationOptions": [
"build",
"/app/example.mojo"
],
"downloads": [],
"execTime": 293,
"executableFilename": "/nosym/tmp/compiler-explorer-compilerX27ymd/example",
"inputFilename": "example.mojo",
"instructionSet": "amd64",
"okToCache": true,
"processExecutionResultTime": 0.06680099852383137,
"stderr": [
{
"tag": {
"column": 6,
"file": "example.mojo",
"line": 15,
"severity": 3,
"text": "error: unable to locate module 'typed_errors'"
},
"text": "<source>:15:6: error: unable to locate module 'typed_errors'"
},
{
"text": "from typed_errors import ValidationError, validate_username"
},
{
"text": " ^"
},
{
"tag": {
"column": 23,
"file": "example.mojo",
"line": 36,
"severity": 3,
"text": "error: 'Error' value has no attribute 'field'"
},
"text": "<source>:36:23: error: 'Error' value has no attribute 'field'"
},
{
"text": " assert_equal(e.field, \"username\")"
},
{
"text": " ~^"
},
{
"tag": {
"column": 23,
"file": "example.mojo",
"line": 37,
"severity": 3,
"text": "error: 'Error' value has no attribute 'reason'"
},
"text": "<source>:37:23: error: 'Error' value has no attribute 'reason'"
},
{
"text": " assert_equal(e.reason, \"cannot be empty\")"
},
{
"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": 373,
"okToCache": false,
"queueTime": 4,
"stderr": [
{
"text": "Build failed"
}
],
"stdout": [],
"timedOut": false
},
"result": {
"asm": null,
"buildStderr": "<source>:15:6: error: unable to locate module 'typed_errors'\nfrom typed_errors import ValidationError, validate_username\n ^\n<source>:36:23: error: 'Error' value has no attribute 'field'\n assert_equal(e.field, \"username\")\n ~^\n<source>:37:23: error: 'Error' value has no attribute 'reason'\n assert_equal(e.reason, \"cannot be empty\")\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.57,
"sourceSha256": "924e868730eaf8eb697f9f1a9655f825508e6a2c7ac10701af4f49a44336baac",
"stdin": ""
}