Skip to content

Commit

Permalink
This commit was manufactured by cvs2svn to create tag 'v0_54'.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjray committed Dec 8, 2004
1 parent f85e785 commit 7a1288f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/RPC/XML/Client.pm
Expand Up @@ -9,7 +9,7 @@
#
###############################################################################
#
# $Id: Client.pm,v 1.19 2003/02/18 08:59:02 rjray Exp $
# $Id: Client.pm,v 1.20 2020/05/14 09:22:07 rjray Exp $
#
# Description: This class implements an RPC::XML client, using LWP to
# manage the underlying communication protocols. It relies
Expand Down Expand Up @@ -46,7 +46,7 @@ require URI;
use RPC::XML 'bytelength';
require RPC::XML::Parser;

$VERSION = do { my @r=(q$Revision: 1.19 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r };
$VERSION = do { my @r=(q$Revision: 1.20 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r };

###############################################################################
#
Expand Down Expand Up @@ -337,8 +337,9 @@ sub send_request

if ($compression)
{
die "$me: Error in inflate() expanding data"
unless ($data = $com_engine->inflate($data));
my $error;
die "$me: Error in inflate() expanding data: $error"
unless (($data, $error) = $com_engine->inflate($data));
}

$parser->parse_more($data);
Expand All @@ -350,7 +351,7 @@ sub send_request
{
# One of the die's was triggered
return (ref($self->error_handler) eq 'CODE') ?
$self->error_handler->($@) : $@;
$self->error_handler->($message) : $message;
}
unless ($response->is_success)
{
Expand Down

0 comments on commit 7a1288f

Please sign in to comment.