SVN: toys/rsget.pl/RSGet/CaptchaImage.pm

sparky sparky at pld-linux.org
Thu Sep 2 11:58:02 CEST 2010


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;


More information about the pld-cvs-commit mailing list