changeset 20458:58b02a8d0fe9

Report backtrace for "no default value" error in function header (bug #45496). * pt-misc.cc (define_from_arg_vec): Remove "\n" from error() string so that backtrace is not suppressed. Call bare error() rather than ::error().
author Rik <rik@octave.org>
date Tue, 04 Aug 2015 15:07:48 -0700
parents 4262598620ae
children 099bdf98f724
files libinterp/parse-tree/pt-misc.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-misc.cc	Mon Aug 03 15:24:32 2015 -0700
+++ b/libinterp/parse-tree/pt-misc.cc	Tue Aug 04 15:07:48 2015 -0700
@@ -200,7 +200,7 @@
             {
               if (! elt->eval ())
                 {
-                  ::error ("no default value for argument %d\n", i+1);
+                  error ("no default value for argument %d", i+1);
                   return;
                 }
             }