diff options
author | Simon McVittie <smcv@debian.org> | 2017-06-22 15:15:41 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-06-22 15:16:07 +0100 |
commit | 4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4 (patch) | |
tree | 235ec61bdbc4cba4156e966e8bfa8d97a63d7c94 | |
parent | 52a9d23e2c11c62e411e6c5f1b4f514507aad1c1 (diff) | |
download | ikiwiki-4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4.tar ikiwiki-4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4.tar.gz |
t/img.t: Give better diagnostics if we can't load an image
-rwxr-xr-x | t/img.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}"; |