Branch: Tag:

2004-10-22

2004-10-22 20:17:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved diagnostics.

Rev: src/error.c:1.134

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: error.c,v 1.133 2004/09/18 20:50:49 nilsson Exp $ + || $Id: error.c,v 1.134 2004/10/22 20:17:13 grubba Exp $   */      #define NO_PIKE_SHORTHAND
956:    if(expected>args)    {    bad_arg_error (name, Pike_sp-args, args, expected, NULL, NULL, -  "Too few arguments to %s(). Expected at least %d.\n", -  name, expected); +  "Too few arguments to %s(). Expected at least %d (got %d).\n", +  name, args, expected, args);    }else {    bad_arg_error (name, Pike_sp-args, args, expected, NULL, NULL, -  "Too many arguments to %s(). Expected at most %d.\n", -  name, expected); +  "Too many arguments to %s(). Expected at most %d (got %d).\n", +  name, expected, args);    }   }