Mercurial > hg > octave-nkf
diff src/variables.cc @ 217:cd2e49fb4f6b
[project @ 1993-11-13 09:16:01 by jwe]
author | jwe |
---|---|
date | Sat, 13 Nov 1993 09:30:40 +0000 |
parents | c8863fc976ee |
children | a99f28f5e351 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -627,7 +627,7 @@ if (! arg.is_string_type ()) { if (warn) - message (warn_for, "expecting function name as argument"); + error ("%s: expecting function name as argument", warn_for); return ans; } @@ -650,8 +650,8 @@ if (ans == NULL_TREE || ! sr->is_function ()) { if (warn) - message (warn_for, "the symbol `%s' is not valid as a function", - fcn_name); + error ("%s: the symbol `%s' is not valid as a function", + warn_for, fcn_name); ans = NULL_TREE; } @@ -670,8 +670,8 @@ if (nargs != e_nargs) { if (warn) - message (warn_for, "expecting function to take %d argument%c", - e_nargs, s_plural (e_nargs)); + error ("%s: expecting function to take %d argument%c", + warn_for, e_nargs, s_plural (e_nargs)); return 0; } return 1;