changeset 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 5be2e6696772
children 86ae7e50dc5d
files src/ChangeLog src/variables.cc
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue May 05 11:27:06 2009 -0400
+++ b/src/ChangeLog	Tue May 05 13:05:12 2009 -0400
@@ -1,3 +1,7 @@
+2009-05-05  John W. Eaton  <jwe@octave.org>
+
+	* variables.cc (set_internal_variable): Pass NM in call to error.
+
 2009-05-04  Peter O'Gorman  <pogma@thewrittenword.com>
 
 	* utils.cc: Don't define HAVE_C99_VSNPRINTF here.
--- a/src/variables.cc	Tue May 05 11:27:06 2009 -0400
+++ b/src/variables.cc	Tue May 05 13:05:12 2009 -0400
@@ -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;
 	}