diff src/utils.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
line wrap: on
line diff
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -317,7 +317,7 @@
             }
         }
       else
-        error ("file_in_loadpath: expecting string as first argument");
+        error ("file_in_loadpath: FILE argument must be a string");
     }
   else
     print_usage ();
@@ -379,10 +379,10 @@
                 }
             }
           else
-            error ("file_in_path: expecting string as second argument");
+            error ("file_in_path: all arguments must be strings");
         }
       else
-        error ("file_in_path: expecting string as first argument");
+        error ("file_in_path: PATH must be a string");
     }
   else
     print_usage ();
@@ -615,7 +615,7 @@
       if (args(0).is_string ())
         retval = do_string_escapes (args(0).string_value ());
       else
-        error ("do_string_escapes: argument must be a string");
+        error ("do_string_escapes: STRING argument must be of type string");
     }
   else
     print_usage ();
@@ -721,7 +721,7 @@
       if (args(0).is_string ())
         retval = undo_string_escapes (args(0).string_value ());
       else
-        error ("undo_string_escapes: argument must be a string");
+        error ("undo_string_escapes: S argument must be a string");
     }
   else
     print_usage ();
@@ -780,7 +780,7 @@
       if (! error_state)
         retval = octave_env::make_absolute (nm);
       else
-        error ("make_absolute_filename: expecting argument to be a file name");
+        error ("make_absolute_filename: FILE argument must be a file name");
     }
   else
     print_usage ();
@@ -819,7 +819,7 @@
             retval = Cell (load_path::find_matching_dirs (dir));
         }
       else
-        error ("find_dir_in_path: expecting argument to be a directory name");
+        error ("find_dir_in_path: DIR must be a directory name");
     }
   else
     print_usage ();