octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should library error() calls have newlines?


From: Carnë Draug
Subject: Re: Should library error() calls have newlines?
Date: Sun, 5 May 2019 17:18:52 +0100

On Thu, 2 May 2019 at 23:14, Andrew Janke <address@hidden> wrote:
>
> Hi, Octave maintainers,
>
> Question about best practice for Octave package development: Should the
> error() calls raised in package library functions end in newlines, so
> the stack traces are suppressed, or not, so stack traces are displayed?
> Trailing newline in error message strings controls stack trace display,
> right?

Hi

Yes, a trailing newline will hide the stack trace.

I don't think there's any official stance on this though, but I would
say it's better to not hide it.  Let the whole stack trace be
displayed since hiding it makes debugging more difficult.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]