Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more details in warnings #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

basiliscos
Copy link
Contributor

No description provided.

@@ -144,7 +144,12 @@ sub call_rpc {

my $api_response;
if (!$res) {
warn "WrongResponse [$msg_type]";
my $tx = $client->tx;
my $details = 'URL: ' . $tx->req->url;
Copy link
Contributor

@raunakkathuria raunakkathuria Aug 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this check if tx object exists, like my $details = $tx ? 'URL: ' . $tx->req->url : ''; else it will give warnings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for paying attention to that!

According to the implementation of MojoX::JSON::RPC::Client we shouldn't:

@jy-deriv
Copy link
Contributor

jy-deriv commented Aug 7, 2017

@basiliscos failing tests

@basiliscos
Copy link
Contributor Author

Tests fail in master too, because MojoX/JSON/RPC/Client.pm uses Mojo6 api (as in our private cpan), meanwhile public tests use latest Mojo7, and it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants