diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-12 20:21:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-12 20:21:42 -0400 |
commit | e4e3d7e2d4195bcd22c467522719c9c6dd39216b (patch) | |
tree | a5a9112c83d916efc9924488e478471394a3eb54 | |
parent | 71fba7791f93f50768b345f318c87ac43ae45b63 (diff) |
convert fatal error to warning
Since perlmagick is not a hard dep, and goodstuff is enabled by default,
imgs should not crash builds
-rw-r--r-- | IkiWiki/Plugin/img.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index cc0e84b01..49e1d57d6 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -46,7 +46,7 @@ sub preprocess (@) { #{{{ my $base = IkiWiki::basename($file); eval q{use Image::Magick}; - error($@) if $@; + return "[[img ".gettext("Image::Magick not installed")."]]" if $@; my $im = Image::Magick->new; my $imglink; my $r; |