diff src/ov-cell.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 25f8acbb6be2
line wrap: on
line diff
--- a/src/ov-cell.cc	Sat Feb 26 16:21:02 2011 -0500
+++ b/src/ov-cell.cc	Sat Feb 26 17:28:11 2011 -0800
@@ -538,7 +538,7 @@
       retval = tmp.is_sorted (mode);
     }
   else
-    error ("issorted: not a cell array of strings");
+    error ("issorted: A is not a cell array of strings");
 
   return retval;
 }
@@ -573,7 +573,7 @@
       retval = tmp.is_sorted_rows (mode);
     }
   else
-    error ("issorted: not a cell array of strings");
+    error ("issorted: A is not a cell array of strings");
 
   return retval;
 }
@@ -1375,7 +1375,7 @@
                       ? Cell (octave_value (std::string ()))
                       : Cell (s, true));
           else
-            error ("cellstr: expecting argument to be a 2-d character array");
+            error ("cellstr: argument STRING must be a 2-D character array");
         }
     }
   else
@@ -1460,7 +1460,7 @@
           retval = c;
         }
       else
-        error ("struct2cell: expecting argument to be a cell array");
+        error ("struct2cell: argument S must be a structure");
     }
   else
     print_usage ();