# HG changeset patch # User jwe # Date 1167934979 0 # Node ID 62f482479cb59a220faca8f4501313393a13542b # Parent d86ea52f5f439ae0b0ffb7004c98f77b8d1dec4a [project @ 2007-01-04 18:22:59 by jwe] diff -r d86ea52f5f43 -r 62f482479cb5 src/ChangeLog --- a/src/ChangeLog Thu Jan 04 17:57:49 2007 +0000 +++ b/src/ChangeLog Thu Jan 04 18:22:59 2007 +0000 @@ -1,3 +1,9 @@ +2007-01-04 David Bateman + + * 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 * mex.cc (mxArray_number::mxArray_number (int, const char **)): diff -r d86ea52f5f43 -r 62f482479cb5 src/ov-fcn-handle.cc --- a/src/ov-fcn-handle.cc Thu Jan 04 17:57:49 2007 +0000 +++ b/src/ov-fcn-handle.cc Thu Jan 04 18:22:59 2007 +0000 @@ -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;