Mercurial > hg > octave-max
changeset 10001:6918d86add73
Print script filename in script indexing errors
author | David Grundberg <davidg@cs.umu.se> |
---|---|
date | Fri, 18 Dec 2009 13:26:05 -0500 |
parents | d6e361255a5c |
children | e93c9bfff8b8 |
files | src/ChangeLog src/ov-usr-fcn.cc |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-12-18 David Grundberg <davidg@cs.umu.se> + + * ov-usr-fcn.cc (octave_user_script::do_multi_index_op): + Print script filename in script indexing errors. + (octave_user_script::subsref): Ditto. + 2009-12-18 John W. Eaton <jwe@octave.org> * input.cc (get_debug_input): Don't attempt to get user input
--- a/src/ov-usr-fcn.cc +++ b/src/ov-usr-fcn.cc @@ -103,7 +103,7 @@ { octave_value_list retval; - ::error ("invalid use of script in index expression"); + ::error ("invalid use of script %s in index expression", file_name.c_str ()); return retval; } @@ -150,7 +150,7 @@ } } else - error ("invalid call to script"); + error ("invalid call to script %s", file_name.c_str ()); } unwind_protect::run_frame (uwp_frame);