Skip to content

Commit 0cfb87f

Browse files
committed
Explain die uses $*ERR.
See issue #1722.
1 parent e3edec2 commit 0cfb87f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/Language/exceptions.pod6

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ backtrace printer.
1717
1818
=head1 Ad hoc exceptions
1919
20-
Ad hoc exceptions can be used by calling C<die> with
21-
a description of the error.
20+
Ad hoc exceptions can be used by calling L<die|/routine/die> with
21+
a description of the error:
2222
2323
die "oops, something went wrong";
2424
2525
# RESULT: «oops, something went wrong in block <unit> at my-script.p6:1␤»
2626
27+
28+
It is worth noting that C<die> prints the error message to the standard error C<$*ERR>.
29+
2730
=head1 Typed exceptions
2831
2932
Typed exceptions provide more information about the error stored

0 commit comments

Comments
 (0)