develooper Front page | perl.perl6.users | Postings from September 2018

Re: Appropriate last words

Thread Previous | Thread Next
Curt Tilmes
September 3, 2018 20:49
Re: Appropriate last words
Message ID:
On Mon, Sep 3, 2018 at 4:28 PM Parrot Raiser <> wrote:

> If I understand that correctly, "die" needs to be documented as always
> outputting the line number, and that for user-oriented messages, one
> of the other techniques should be used.

die throws the Exception -- you can CATCH it and handle it how you like,
including printing the message without line numbers.

(Or, for example, print the backtrace during development, but a simpler
error message in operations).

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About