--- AnyEvent-FCP/FCP.pm 2016/06/12 04:44:05 1.24 +++ AnyEvent-FCP/FCP.pm 2016/06/15 09:20:42 1.25 @@ -138,7 +138,7 @@ Invoked on any (fatal) errors, such as unexpected connection close. The callback receives the FCP object and a textual error message. -=item on_failure => $callback->($fcp, $type, $backtrace, $args, $error) +=item on_failure => $callback->($fcp, $type, $args, $backtrace, $error) Invoked when an FCP request fails that didn't have a failure callback. See L for details. @@ -447,13 +447,13 @@ you never generate protocol errors! In the failure case, if an C hook exists, it will be invoked -with the FCP object, the request type (the name of the method), a -(textual) backtrace as generated by C, and arrayref -containing the arguments from the original request invocation and the -error object from the server, in this order, e.g.: +with the FCP object, the request type (the name of the method, an arrayref +containing the arguments from the original request invocation, a (textual) +backtrace as generated by C, and the error object from the +server, in this order, e.g.: on_failure => sub { - my ($fcp, $request_type, $backtrace, $orig_args, $error_object) = @_; + my ($fcp, $request_type, $orig_args, $backtrace, $error_object) = @_; warn "FCP failure ($type), $error_object->{code_description} ($error_object->{extra_description})$backtrace"; exit 1;