From: Simon McVittie Date: Thu, 22 Jun 2017 14:15:41 +0000 (+0100) Subject: t/img.t: Give better diagnostics if we can't load an image X-Git-Tag: 3.20171001~39 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4 t/img.t: Give better diagnostics if we can't load an image --- diff --git a/t/img.t b/t/img.t index 228f09a0e..20c960500 100755 --- a/t/img.t +++ b/t/img.t @@ -107,7 +107,7 @@ sub size($) { my $filename = shift; my $im = Image::Magick->new(); my $r = $im->Read(":$filename"); - return "no image" if $r; + return "no image: $r" if $r; my $w = $im->Get("width"); my $h = $im->Get("height"); return "${w}x${h}";