From: joey Date: Tue, 5 Jun 2007 19:06:54 +0000 (+0000) Subject: exit with error if Text::Typography cannot be loaded X-Git-Tag: 2.2~18 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/9dc9c113cc1b345bb9631f92803b4d0b9426f8e4 exit with error if Text::Typography cannot be loaded --- diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index 5073d51d3..fe6996898 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -22,7 +22,7 @@ sub sanitize (@) { #{{{ my %params=@_; eval q{use Text::Typography}; - return $params{content} if $@; + error($@) if $@; my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3'; return Text::Typography::typography($params{content}, $attributes);