Skip to content

Commit

Permalink
better description for error method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 23, 2015
1 parent a3e1cc4 commit 45cd983
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Mojo/Transaction.pm
Expand Up @@ -214,8 +214,11 @@ Connection identifier or socket.
my $err = $tx->error;
Return transaction error or C<undef> if there is no error, commonly used
together with L</"success">.
Return request or response error from L<Mojo::Message/"error"> or C<undef> if
there is no error, commonly used together with L</"success">.
# Longer version
my $err = $tx->req->error || $tx->res->error;
# Check for different kinds of errors
if (my $err = $tx->error) {
Expand Down

0 comments on commit 45cd983

Please sign in to comment.