Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use $_ rather than $! inside CATCH block (because $! gets unset)
  • Loading branch information
timo committed Feb 18, 2016
1 parent 38822ca commit 7717b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/Htmlify.pm6
Expand Up @@ -204,7 +204,7 @@ class Website is export {
return $v.html;
CATCH {
default {
return "<!-- Error while syntax highlighting this piece of code: $!.message() -->\n" ~
return "<!-- Error while syntax highlighting this piece of code: $_.message() -->\n" ~
"<pre>" ~ $node.contents.join ~ "</pre>";
}
}
Expand Down

0 comments on commit 7717b27

Please sign in to comment.