diff scripts/io/strread.m @ 11472:1740012184f9

Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 21:33:04 -0800
parents c776f063fefe
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/io/strread.m	Sun Jan 09 16:01:05 2011 -0800
+++ b/scripts/io/strread.m	Sun Jan 09 21:33:04 2011 -0800
@@ -106,7 +106,7 @@
   endif
  
   if (!ischar (str) || !ischar (format))
-    error ("strread: first and second input arguments must be strings");
+    error ("strread: STR and FORMAT arguments must be strings");
   endif
 
   ## Parse options
@@ -157,7 +157,7 @@
   nfields = length (idx) - length (idx_star);
 
   if (max (nargout, 1) != nfields)
-    error ("strread: the number of output variables must match that of format specifiers");
+    error ("strread: the number of output variables must match that specified byFORMAT");
   endif
 
   ## Remove comments
@@ -232,7 +232,7 @@
         ## Ensure descriptive content is consistent
         if (numel (unique (data)) > 1
             || ! strcmpi (unique (data), fmt_words{m}))
-          error ("strread: format does not match data")
+          error ("strread: FORMAT does not match data")
         endif
     endswitch
   endfor