Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a typo and change the wording of an error msg
  • Loading branch information
hinrik committed Jul 1, 2009
1 parent 8436b20 commit f2b5b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/App/Grok/Pod5.pm
Expand Up @@ -19,7 +19,7 @@ sub render {
? 'Pod::Xhtml'
: $format eq 'text'
? 'Pod::Text'
: die __PACKAGE__ " doesn't support the '$format' format";
: die __PACKAGE__ . " doesn't support the '$format' format";
;

eval "require $formatter";
Expand Down
4 changes: 3 additions & 1 deletion lib/App/Grok/Pod6.pm
Expand Up @@ -16,7 +16,9 @@ sub new {
sub render {
my ($self, $file, $format) = @_;

die "Format $format unsupported" if $format !~ /^(?:ansi|text|xhtml)$/;
if ($format !~ /^(?:ansi|text|xhtml)$/) {
die __PACKAGE__ . " doesn't support the '$format' format";
}
eval "require Perl6::Perldoc::To::\u$format";
die $@ if $@;

Expand Down

0 comments on commit f2b5b09

Please sign in to comment.