aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2017-06-22 15:15:41 +0100
committerSimon McVittie <smcv@debian.org>2017-06-22 15:16:07 +0100
commit4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4 (patch)
tree235ec61bdbc4cba4156e966e8bfa8d97a63d7c94
parent52a9d23e2c11c62e411e6c5f1b4f514507aad1c1 (diff)
downloadikiwiki-4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4.tar
ikiwiki-4ace7dbb755d1f2496c4fc203cd1ba72fca9c7e4.tar.gz
t/img.t: Give better diagnostics if we can't load an image
-rwxr-xr-xt/img.t2
1 files changed, 1 insertions, 1 deletions
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}";