Skip to content

Commit

Permalink
don't use .payload for a "handle all exceptions" example
Browse files Browse the repository at this point in the history
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
  • Loading branch information
timo committed Feb 28, 2019
1 parent e30a891 commit fb5d341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/exceptions.pod6
Expand Up @@ -72,7 +72,7 @@ almost the same information as the normal backtrace printer.
CATCH {
default {
$*ERR.say: .payload;
$*ERR.say: .message;
for .backtrace.reverse {
next if .file.starts-with('SETTING::');
next unless .subname;
Expand Down

0 comments on commit fb5d341

Please sign in to comment.