Skip to content

Commit

Permalink
Confess instead of croak
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Taylor committed Mar 6, 2014
1 parent 0e2526f commit b4fea11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/MojoRPC/Client.pm
Expand Up @@ -9,7 +9,7 @@ use MojoRPC::Client::Request;
use MojoRPC::Client::Response;
use Carp;

our $VERSION = '0.09';
our $VERSION = '0.10';

has [qw(base_url api_key last_request debug )];
has object_class => "MojoRPC::Client::Object";
Expand Down
2 changes: 1 addition & 1 deletion lib/MojoRPC/Client/Request.pm
Expand Up @@ -72,7 +72,7 @@ sub send_request {
my $response = $self->user_agent->request($http_request);

unless($response->is_success()) {
croak "MojoRPC Request failed with " . $response->status_line . "\n" . $response->decoded_content(charset => 'none') . "\nPath: $path" ;
confess "MojoRPC Request failed with " . $response->status_line . "\n" . $response->decoded_content(charset => 'none') . "\nPath: $path" ;
}

return $response;
Expand Down

0 comments on commit b4fea11

Please sign in to comment.