Mercurial > hg > octave-lyh
diff src/error.cc @ 14055:4000ad5fe0f6 stable
extract correct struct field in lasterror
* error.cc (Flasterror): After checking for "stack" in structure,
extract "stack" field, not "identifier". Reported by Thomas Uhle
<thomas.uhle@eas.iis.fraunhofer.de>.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Dec 2011 10:07:57 -0500 |
parents | 57e19c30b7d6 |
children | d0d9c5d2e434 |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -1577,7 +1577,7 @@ if (! error_state && new_err.contains ("stack")) { octave_scalar_map new_err_stack = - new_err.getfield("identifier").scalar_map_value (); + new_err.getfield("stack").scalar_map_value (); if (! error_state && new_err_stack.contains ("file")) {