Skip to content

Commit d7ecb33

Browse files
committed
use readable file names
1 parent 6a285c2 commit d7ecb33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/exceptions.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Ad-hoc exceptions work just like in traditional Perl 5, one can simply use
1919
C<die> with a message as to what went wrong:
2020
2121
die "oops, something went wrong";
22-
#!> oops, something went wrong in block <unit> at /tmp/0IeSX_XSWO:1
22+
#!> oops, something went wrong in block <unit> at my-script.p6:1
2323
2424
=head1 Typed exceptions
2525
@@ -31,7 +31,7 @@ L<X::IO::DoesNotExist> exception like so:
3131
3232
die X::IO::DoesNotExist.new(:path("foo/bar"), :trying("zombie copy"))
3333
#!> Failed to find 'foo/bar' while trying to do '.zombie copy'
34-
#!> in block <unit> at /tmp/BgTfZOotgc:1
34+
#!> in block <unit> at my-script.p6:1
3535
3636
Note how the object has provided the backtrace with information about what
3737
went wrong so that hopefully the user of the code can find and correct the
@@ -188,7 +188,7 @@ exception's payload is passed on to the backtrace printing mechanism.
188188
}
189189
"OBAI".say;
190190
#!> foo
191-
#!> in block <unit> at /tmp/FbtB60dxVO:1
191+
#!> in block <unit> at my-script.p6:1
192192
193193
This example doesn't resume from the point of the exception, however
194194
it continues after the enclosing block, since the exception was caught, and

0 commit comments

Comments
 (0)