aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 14:27:18 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 14:27:18 -0400
commit68c4731ae68b3d2a73c212c5bb342fe1a2d5e270 (patch)
treebd224429addc6e8cf6146c10a59c7c889cf816d1 /compile.c
parent5f685cbbe57fd6d3558efdbfb685dd5f177eaf34 (diff)
Show more error info
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 41915f60..81627232 100644
--- a/compile.c
+++ b/compile.c
@@ -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));
}
}