| 1 | vlib/v/checker/tests/veb_ctx_on_fn_err.vv:50:9: error: undefined ident: `ctx` |
| 2 | 48 | fn serve_file(name string) veb.Result { |
| 3 | 49 | content := os.read_file(name) or { panic('Error reading ${name}') } |
| 4 | 50 | return ctx.html(content) |
| 5 | | ~~~ |
| 6 | 51 | } |
| 7 | vlib/v/checker/tests/veb_ctx_on_fn_err.vv:50:2: error: `ctx.html(content)` used as value |
| 8 | 48 | fn serve_file(name string) veb.Result { |
| 9 | 49 | content := os.read_file(name) or { panic('Error reading ${name}') } |
| 10 | 50 | return ctx.html(content) |
| 11 | | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| 12 | 51 | } |
| 13 | |