From 24096f5ba2ae6bb81af0b24a4f6e2a1e51b16d19 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Wed, 21 Feb 2007 14:20:30 +0000 Subject: [PATCH] Improved error message for setq()/setr() with an odd number of arguments --- src/funmisc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/funmisc.c b/src/funmisc.c index e858d4f..8757a60 100644 --- a/src/funmisc.c +++ b/src/funmisc.c @@ -162,7 +162,9 @@ FUNCTION(fun_setq) int n; if ((nargs % 2) != 0) { - safe_str(T("#-1 FUNCTION EXPECTS AN EVEN NUMBER OF ARGUMENTS"), buff, bp); + safe_format(buff, bp, + T("#-1 FUNCTION (%s) EXPECTS AN EVEN NUMBER OF ARGUMENTS"), + called_as); return; } -- 2.30.2