diff src/ov-usr-fcn.cc @ 12483:7a5aacf65f81

Rewrite error strings in src/ to use variables named in documentation.
author Rik <octave@nomad.inbox5.com>
date Sat, 26 Feb 2011 17:28:11 -0800
parents 12df7854fa7c
children 39ca02387a32 20cb178716ee
line wrap: on
line diff
--- a/src/ov-usr-fcn.cc	Sat Feb 26 16:21:02 2011 -0500
+++ b/src/ov-usr-fcn.cc	Sat Feb 26 17:28:11 2011 -0800
@@ -639,7 +639,7 @@
             error ("nargin: invalid function");
         }
       else
-        error ("nargin: expecting string as first argument");
+        error ("nargin: FCN_NAME must be a string");
     }
   else if (nargin == 0)
     {
@@ -713,7 +713,7 @@
             error ("nargout: invalid function");
         }
       else
-        error ("nargout: expecting string as first argument");
+        error ("nargout: FCN_NAME must be a string");
     }
   else if (nargin == 0)
     {
@@ -758,7 +758,7 @@
 {
   if (k != xround (k) || k <= 0)
     {
-      error ("isargout: argument must be a positive integer");
+      error ("isargout: K must be a positive integer");
       return false;
     }
   else