aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
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));
}
}