Mercurial > hg > octave-lojdl
changeset 6225:62f482479cb5
[project @ 2007-01-04 18:22:59 by jwe]
author | jwe |
---|---|
date | Thu, 04 Jan 2007 18:22:59 +0000 |
parents | d86ea52f5f43 |
children | 984d85191d0d |
files | src/ChangeLog src/ov-fcn-handle.cc |
diffstat | 2 files changed, 18 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-01-04 David Bateman <dbateman@free.fr> + + * ov-fcn-handle.cc (octave_fcn_handle::load_ascii, + octave_fcn_handle::load_binary): + Throw error if handle can't be created. + 2007-01-04 Luis F. Ortiz <lortiz@interactivesupercomputing.com> * mex.cc (mxArray_number::mxArray_number (int, const char **)):
--- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -206,7 +206,10 @@ { fcn = lookup_function (nm); if (! fcn.is_function ()) - return false; + { + error ("function handle points to non-existent function"); + return false; + } } return true; @@ -275,7 +278,10 @@ { fcn = lookup_function (nm); if (! fcn.is_function ()) - return false; + { + error ("function handle points to non-existent function"); + return false; + } } return true; } @@ -504,7 +510,10 @@ { fcn = lookup_function (nm); if (! fcn.is_function ()) - return false; + { + error ("function handle points to non-existent function"); + return false; + } } return true;