these kinds of error messages don't need to tell us what line number they're from...
authorIvan Kohler <ivan@freeside.biz>
Tue, 13 Sep 2016 21:05:20 +0000 (14:05 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 13 Sep 2016 21:05:20 +0000 (14:05 -0700)
BillBuddy.pm

index de2131c..72b5afe 100644 (file)
@@ -259,10 +259,11 @@ sub xmlrpc_post {
   my $xmlcontent = $self->xml_format($sid,@param);
   warn $self->host . ' ' . $self->port . ' ' . $path . "\n" . $xmlcontent if $self->debug;
   my ($response, $rcode, %rheaders) = $self->https_post($path,$xmlcontent);
-  die "Bad response from gateway: $rcode" unless $rcode eq '200 OK';
+  die "Bad response from gateway: $rcode\n" unless $rcode eq '200 OK';
   warn $response . "\n" if $self->debug;
   my $rref = XMLin($response, KeyAttr => ['ResponseData'], ForceArray => []);
-  die "Error from gateway: " . $rref->{'ResponseStatusDescription'} if $rref->{'ResponseStatus'};
+  die "Error from gateway: " . $rref->{'ResponseStatusDescription'}. "\n"
+    if $rref->{'ResponseStatus'};
   return $rref;
 }