Hi Stefan,
do you think, that $tx->result is sufficient ?
The result also can be "is_error" so the original code catched $res->success which can be translated into $result->is_success.
Also the $result has to be evaluated.
The doc of Mojo::Transaction clearly states:
Returns the Mojo::Message::Response object from "res" or dies if a
connection error has occurred.
As for my understanding you have to use "eval" to catch any error other than $result->is_error.
Perhaps Joel can clear things up.
Hi Stefan, do you think, that $tx->result is sufficient ? The result also can be "is_error" so the original code catched $res->success which can be translated into $result->is_success. Also the $result has to be evaluated. The doc of Mojo::Transaction clearly states:
As for my understanding you have to use "eval" to catch any error other than $result->is_error. Perhaps Joel can clear things up.
Best regards Franz