Skip to content

Commit

Permalink
Make X::Cannot::Capture PDGier
Browse files Browse the repository at this point in the history
Mention user may have meant to use `&callable:(Sig)` form
  • Loading branch information
zoffixznet committed Dec 12, 2017
1 parent 2f955d5 commit 9fd5042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Exception.pm
Expand Up @@ -2119,7 +2119,8 @@ my class X::Cannot::Capture is Exception {
"Cannot unpack or Capture `$!what.gist()`.\n"
~ "To create a Capture, add parentheses: \\(...)\n"
~ 'If unpacking in a signature, perhaps you needlessly used'
~ ' parentheses? -> ($x) {} vs. -> $x {}';
~ ' parentheses? -> ($x) {} vs. -> $x {}'
~ "\nor missed `:` in signature unpacking? -> \&c:(Int) \{}";
}
}

Expand Down

0 comments on commit 9fd5042

Please sign in to comment.