Mercurial > jwe > octave
changeset 20822:40fc94a24a97
if error format ends with newline, suppress stack trace (bug #46608)
* error.cc (error_1): If error format ends with a newline, reset stack
trace in exception to the empty string.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 Dec 2015 01:37:04 -0500 |
parents | b169da150702 |
children | 8848e35e5ef8 |
files | libinterp/corefcn/error.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc Mon Dec 07 22:29:12 2015 -0800 +++ b/libinterp/corefcn/error.cc Tue Dec 08 01:37:04 2015 -0500 @@ -468,6 +468,9 @@ verror (true, os, name, id, tmp_fmt, args, with_cfn); delete [] tmp_fmt; } + + // If format ends with newline, suppress stack trace. + e.set_stack_trace (); } else {