Mercurial > hg > octave-nkf
diff src/ov-fcn-handle.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 | 65b7ce254ba3 |
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -1646,10 +1646,10 @@ retval = m; } else - error ("functions: invalid function handle object"); + error ("functions: FCN_HANDLE is not a valid function handle object"); } else - error ("functions: argument must be a function handle object"); + error ("functions: FCN_HANDLE argument must be a function handle object"); } else print_usage (); @@ -1686,7 +1686,7 @@ retval = fh_nm; } else - error ("func2str: expecting valid function handle as first argument"); + error ("func2str: FCN_HANDLE must be a valid function handle"); } else print_usage (); @@ -1713,7 +1713,7 @@ if (! error_state) retval = make_fcn_handle (nm, nargin != 2); else - error ("str2func: expecting string as first argument"); + error ("str2func: FCN_NAME must be a string"); } else print_usage ();