From e4e3d7e2d4195bcd22c467522719c9c6dd39216b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Jul 2008 20:21:42 -0400 Subject: [PATCH] convert fatal error to warning Since perlmagick is not a hard dep, and goodstuff is enabled by default, imgs should not crash builds --- IkiWiki/Plugin/img.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.0