diff --git a/core/translate/expr.rs b/core/translate/expr.rs index a482d119b..ea36918b6 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -693,7 +693,7 @@ pub fn translate_expr( match &func_ctx.func { Func::Agg(_) => { - crate::bail_parse_error!("aggregation function in non-aggregation context") + crate::bail_parse_error!("misuse of aggregate function {}()", name.0) } Func::External(_) => { let regs = program.alloc_registers(args_count);