Skip to content

Add more details in warnings#16

Open
basiliscos wants to merge 2 commits intoderiv-com:masterfrom
basiliscos:ivan/trailing-zero-quote
Open

Add more details in warnings#16
basiliscos wants to merge 2 commits intoderiv-com:masterfrom
basiliscos:ivan/trailing-zero-quote

Conversation

@basiliscos
Copy link
Copy Markdown
Contributor

No description provided.

if (!$res) {
warn "WrongResponse [$msg_type]";
my $tx = $client->tx;
my $details = 'URL: ' . $tx->req->url;
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

jy-deriv commented Aug 7, 2017

@basiliscos failing tests

@basiliscos
Copy link
Copy Markdown
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