diff src/DLD-FUNCTIONS/sub2ind.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 5fa482628bf6
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/sub2ind.cc	Sat Feb 26 16:21:02 2011 -0500
+++ b/src/DLD-FUNCTIONS/sub2ind.cc	Sat Feb 26 17:28:11 2011 -0800
@@ -40,7 +40,7 @@
   octave_idx_type n = dimsv.length ();
 
   if (n < 1)
-    error ("%s: dimension vector must not be empty", name);
+    error ("%s: dimension vector DIMS must not be empty", name);
   else
     {
       dv.resize (std::max (n, static_cast<octave_idx_type> (2)));
@@ -52,7 +52,7 @@
             dv(i) = ii;
           else
             {
-              error ("%s: dimension vector must contain integers", name);
+              error ("%s: dimension vector DIMS must contain integers", name);
               break;
             }
         }