From 68c4731ae68b3d2a73c212c5bb342fe1a2d5e270 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 16 Sep 2024 14:27:18 -0400 Subject: Show more error info --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') 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)); } } -- cgit v1.2.3