This commit was generated by cvs2svn to compensate for changes in r5562,
[freeside.git] / fs_selfservice / FS-SelfService / cgi / selfservice.cgi
index 2e1da41..5911124 100644 (file)
@@ -8,6 +8,7 @@ use CGI::Carp qw(fatalsToBrowser);
 use Text::Template;
 use HTML::Entities;
 use Date::Format;
+use Number::Format 1.50;
 use FS::SelfService qw( login customer_info invoice
                         payment_info process_payment 
                         process_prepay
@@ -243,7 +244,7 @@ sub payment_results {
   #the rest, it gives better error messages
 
   $cgi->param('amount') =~ /^\s*(\d+(\.\d{2})?)\s*$/
-    or die "illegal amount"; #!!!
+    or die "Illegal amount: ". $cgi->param('amount'); #!!!
   my $amount = $1;
 
   my $payinfo = $cgi->param('payinfo');