298 lines
10 KiB
JSON
298 lines
10 KiB
JSON
{
|
|
"args": "",
|
|
"askedAt": "2026-10-03T14:18:10+00:00",
|
|
"compiler": "mojo_1_1_0",
|
|
"firstItem": "manual/code/manual/errors/test_typed_errors_edge_cases",
|
|
"key": "7ce26d59eb63885653eb9b8846ba60ffe7f326f923e6a762b6d5f8e730489a13",
|
|
"mode": "run",
|
|
"raw": {
|
|
"buildResult": {
|
|
"code": 1,
|
|
"compilationOptions": [
|
|
"build",
|
|
"/app/example.mojo"
|
|
],
|
|
"downloads": [],
|
|
"execTime": 253,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compilerRpXils/example",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.10813199728727341,
|
|
"stderr": [
|
|
{
|
|
"tag": {
|
|
"column": 6,
|
|
"file": "example.mojo",
|
|
"line": 15,
|
|
"severity": 3,
|
|
"text": "error: unable to locate module 'typed_errors_edge_cases'"
|
|
},
|
|
"text": "<source>:15:6: error: unable to locate module 'typed_errors_edge_cases'"
|
|
},
|
|
{
|
|
"text": "from typed_errors_edge_cases import ("
|
|
},
|
|
{
|
|
"text": " ^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 38,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'code'"
|
|
},
|
|
"text": "<source>:38:23: error: 'Error' value has no attribute 'code'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.code, 404)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 39,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'message'"
|
|
},
|
|
"text": "<source>:39:23: error: 'Error' value has no attribute 'message'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.message, \"Resource not found\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 47,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'position'"
|
|
},
|
|
"text": "<source>:47:23: error: 'Error' value has no attribute 'position'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.position, 0)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 48,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'expected'"
|
|
},
|
|
"text": "<source>:48:23: error: 'Error' value has no attribute 'expected'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.expected, \"integer\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 56,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'source'"
|
|
},
|
|
"text": "<source>:56:23: error: 'Error' value has no attribute 'source'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.source, \"network\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 22,
|
|
"file": "example.mojo",
|
|
"line": 57,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'details'"
|
|
},
|
|
"text": "<source>:57:22: error: 'Error' value has no attribute 'details'"
|
|
},
|
|
{
|
|
"text": " assert_true(e.details.find(\"NetworkError\") >= 0)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 77,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'code'"
|
|
},
|
|
"text": "<source>:77:23: error: 'Error' value has no attribute 'code'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.code, 500)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 78,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'message'"
|
|
},
|
|
"text": "<source>:78:23: error: 'Error' value has no attribute 'message'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.message, \"Server error\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 86,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'code'"
|
|
},
|
|
"text": "<source>:86:23: error: 'Error' value has no attribute 'code'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.code, 404)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 87,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'message'"
|
|
},
|
|
"text": "<source>:87:23: error: 'Error' value has no attribute 'message'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.message, \"Resource not found\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 95,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'source'"
|
|
},
|
|
"text": "<source>:95:23: error: 'Error' value has no attribute 'source'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.source, \"network\")"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 22,
|
|
"file": "example.mojo",
|
|
"line": 96,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'details'"
|
|
},
|
|
"text": "<source>:96:22: error: 'Error' value has no attribute 'details'"
|
|
},
|
|
{
|
|
"text": " assert_true(e.details.find(\"404\") >= 0)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 23,
|
|
"file": "example.mojo",
|
|
"line": 104,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'code'"
|
|
},
|
|
"text": "<source>:104:23: error: 'Error' value has no attribute 'code'"
|
|
},
|
|
{
|
|
"text": " assert_equal(e.code, 404)"
|
|
},
|
|
{
|
|
"text": " ~^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 22,
|
|
"file": "example.mojo",
|
|
"line": 105,
|
|
"severity": 3,
|
|
"text": "error: 'Error' value has no attribute 'message'"
|
|
},
|
|
"text": "<source>:105:22: error: 'Error' value has no attribute 'message'"
|
|
},
|
|
{
|
|
"text": " assert_true(e.message.find(\"[Modified]\") >= 0)"
|
|
},
|
|
{
|
|
"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": 360,
|
|
"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_edge_cases'\nfrom typed_errors_edge_cases import (\n ^\n<source>:38:23: error: 'Error' value has no attribute 'code'\n assert_equal(e.code, 404)\n ~^\n<source>:39:23: error: 'Error' value has no attribute 'message'\n assert_equal(e.message, \"Resource not found\")\n ~^\n<source>:47:23: error: 'Error' value has no attribute 'position'\n assert_equal(e.position, 0)\n ~^\n<source>:48:23: error: 'Error' value has no attribute 'expected'\n assert_equal(e.expected, \"integer\")\n ~^\n<source>:56:23: error: 'Error' value has no attribute 'source'\n assert_equal(e.source, \"network\")\n ~^\n<source>:57:22: error: 'Error' value has no attribute 'details'\n assert_true(e.details.find(\"NetworkError\") >= 0)\n ~^\n<source>:77:23: error: 'Error' value has no attribute 'code'\n assert_equal(e.code, 500)\n ~^\n<source>:78:23: error: 'Error' value has no attribute 'message'\n assert_equal(e.message, \"Server error\")\n ~^\n<source>:86:23: error: 'Error' value has no attribute 'code'\n assert_equal(e.code, 404)\n ~^\n<source>:87:23: error: 'Error' value has no attribute 'message'\n assert_equal(e.message, \"Resource not found\")\n ~^\n<source>:95:23: error: 'Error' value has no attribute 'source'\n assert_equal(e.source, \"network\")\n ~^\n<source>:96:22: error: 'Error' value has no attribute 'details'\n assert_true(e.details.find(\"404\") >= 0)\n ~^\n<source>:104:23: error: 'Error' value has no attribute 'code'\n assert_equal(e.code, 404)\n ~^\n<source>:105:22: error: 'Error' value has no attribute 'message'\n assert_true(e.message.find(\"[Modified]\") >= 0)\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": "781de0abd1e2c5e283fec2286bf90191f4961e38974540d5cbf0874dcd0569ca",
|
|
"stdin": ""
|
|
}
|