From: Ari Johnson Date: Wed, 21 Feb 2007 14:20:30 +0000 (+0000) Subject: Improved error message for setq()/setr() with an odd number of arguments X-Git-Tag: 0.73~135 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=24096f5ba2ae6bb81af0b24a4f6e2a1e51b16d19;p=cobramush.git Improved error message for setq()/setr() with an odd number of arguments --- 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; }