diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 14:27:18 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 14:27:18 -0400 |
| commit | 68c4731ae68b3d2a73c212c5bb342fe1a2d5e270 (patch) | |
| tree | bd224429addc6e8cf6146c10a59c7c889cf816d1 /compile.c | |
| parent | 5f685cbbe57fd6d3558efdbfb685dd5f177eaf34 (diff) | |
Show more error info
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1387,7 +1387,7 @@ CORD compile_statement(env_t *env, ast_t *ast) } default: if (!is_discardable(env, ast)) - code_err(ast, "The result of this statement cannot be discarded"); + code_err(ast, "The %T result of this statement cannot be discarded", get_type(env, ast)); return CORD_asprintf("(void)%r;", compile(env, ast)); } } |
