Mercurial > hg > octave-avbm
changeset 9419:0dd3c7a2ba19
undo escaped change in previous patch
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 04 Jul 2009 13:19:20 +0200 |
parents | f008a3a1bcb0 |
children | 434ae96dc10f |
files | src/ov-fcn-handle.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -1349,7 +1349,10 @@ octave_value f = symbol_table::find_function (tnm); - retval = octave_value (new octave_fcn_handle (f, tnm)); + if (f.is_defined ()) + retval = octave_value (new octave_fcn_handle (f, tnm)); + else + error ("error creating function handle \"@%s\"", nm.c_str ()); return retval; }