vxx2 / vlib / v / checker / tests / veb_ctx_on_fn_err.out
12 lines · 12 sloc · 577 bytes · 99635cfba922475d7e639680c1cd90149608a896
Raw
1vlib/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 | }
7vlib/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