diff --git a/src/interpret.rs b/src/interpret.rs index 8290fa3..cc4b10e 100644 --- a/src/interpret.rs +++ b/src/interpret.rs @@ -260,7 +260,11 @@ impl ExecEnv { self.fn_call(func, &args, &stmt.span)?; } else { return Err(Error { - kind: ErrorKind::TypeError(iden.iden.to_owned()), + kind: ErrorKind::TypeError(format!( + "attempt to call non-function `{}` (= {})", + iden.iden.to_owned(), + func + )), span: stmt.span.clone(), }); }