Mercurial > hg > octave-nkf
diff src/variables.cc @ 9180:2669527e0ce5
variables.cc (set_internal_variable): Pass NM in call to error
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 May 2009 13:05:12 -0400 |
parents | 5247e89688e1 |
children | f27a8c07f0b2 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -683,9 +683,10 @@ if (! error_state) { if (ival < minval) - error ("%s: expecting arg to be greater than %d", minval); + error ("%s: expecting arg to be greater than %d", nm, minval); else if (ival > maxval) - error ("%s: expecting arg to be less than or equal to %d", maxval); + error ("%s: expecting arg to be less than or equal to %d", + nm, maxval); else var = ival; }