comparison 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
comparison
equal deleted inserted replaced
14054:ec79cd8359c5 14055:4000ad5fe0f6
1575 } 1575 }
1576 1576
1577 if (! error_state && new_err.contains ("stack")) 1577 if (! error_state && new_err.contains ("stack"))
1578 { 1578 {
1579 octave_scalar_map new_err_stack = 1579 octave_scalar_map new_err_stack =
1580 new_err.getfield("identifier").scalar_map_value (); 1580 new_err.getfield("stack").scalar_map_value ();
1581 1581
1582 if (! error_state && new_err_stack.contains ("file")) 1582 if (! error_state && new_err_stack.contains ("file"))
1583 { 1583 {
1584 const std::string tmp = 1584 const std::string tmp =
1585 new_err_stack.getfield("file").string_value (); 1585 new_err_stack.getfield("file").string_value ();