sparky
Thu, 02 Sep 2010 02:58:13 -0700
Author: sparky Date: Thu Sep 2 11:58:01 2010 New Revision: 11800 Modified: toys/rsget.pl/RSGet/CaptchaImage.pm Log: - better message is image data cannot be read
Modified: toys/rsget.pl/RSGet/CaptchaImage.pm
==============================================================================
--- toys/rsget.pl/RSGet/CaptchaImage.pm (original)
+++ toys/rsget.pl/RSGet/CaptchaImage.pm Thu Sep 2 11:58:01 2010
@@ -19,7 +19,8 @@
require GD;
GD::Image->trueColor( 1 );
my $img = GD::Image->new( $$imgdata );
- die "Cannot open captcha image\n" unless $img;
+ die "Cannot decode image data, either it is garbage or " .
+ "your GD library does not support this format\n" unless $img;
my $w = $img->width;
my $h = $img->height;
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit