Skip to content

Commit

Permalink
be a little more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 20, 2016
1 parent 3d6b372 commit 1a19e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Transaction.pm
Expand Up @@ -194,7 +194,7 @@ commonly used together with L</"success">.
# Longer version
my $err = $tx->req->error || $tx->res->error;
# Check for different kinds of errors
# Check for 4xx/5xx response and connection errors
if (my $err = $tx->error) {
die "$err->{code} response: $err->{message}" if $err->{code};
die "Connection error: $err->{message}";
Expand Down

0 comments on commit 1a19e9d

Please sign in to comment.