Skip to content

Commit fb5d341

Browse files
authored
don't use .payload for a "handle all exceptions" example
because payload only exists on X::AdHoc. Use `.message` instead, which every Exception has, and which just stringifies the payload on an X::AdHoc anyway
1 parent e30a891 commit fb5d341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/exceptions.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ almost the same information as the normal backtrace printer.
7272
7373
CATCH {
7474
default {
75-
$*ERR.say: .payload;
75+
$*ERR.say: .message;
7676
for .backtrace.reverse {
7777
next if .file.starts-with('SETTING::');
7878
next unless .subname;

0 commit comments

Comments
 (0)