Mercurial > hg > octave-nkf
diff src/variables.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 | 5ec6aa05638d |
children | 39ca02387a32 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -344,7 +344,7 @@ if (error_state) { - error ("isglobal: expecting std::string argument"); + error ("isglobal: NAME must be a string"); return retval; } @@ -564,10 +564,10 @@ if (! error_state) retval = symbol_exist (name, type); else - error ("exist: expecting second argument to be a string"); + error ("exist: TYPE must be a string"); } else - error ("exist: expecting first argument to be a string"); + error ("exist: NAME must be a string"); } else print_usage (); @@ -1969,7 +1969,7 @@ if (! error_state) munlock (name); else - error ("munlock: expecting argument to be a function name"); + error ("munlock: FCN must be a string"); } else if (args.length () == 0) { @@ -2004,7 +2004,7 @@ if (! error_state) retval = mislocked (name); else - error ("mislocked: expecting argument to be a function name"); + error ("mislocked: FCN must be a string"); } else if (args.length () == 0) {