Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix misleading error msg when port==walletport #2574

Closed
wants to merge 2 commits into from

Conversation

taokayan
Copy link
Contributor

#2256 improve cleos error msg

@spoonincode
Copy link
Contributor

This will conflict with #2555

std::cerr << localized("Failed to connect to nodeos at ${ip}:${port}; is nodeos running?", ("ip", host)("port", port)) << std::endl;
} else if (errorString.find(fc::json::to_string(wallet_port)) != string::npos) {
} else if (errorString.find(wallet_host + ":" + fc::json::to_string(wallet_port)) != string::npos) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should that be "wallet-host" instead of "wallet_host"?

Copy link
Contributor

Choose a reason for hiding this comment

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

These lines don't even exist after the merged HTTPS support, I had to refactor this logic in to what I hope is a little cleaner.

I'm not sure the original defect still exists in my refactor or not.

@gleehokie
Copy link
Contributor

@taokayan see the comments, do you want to close this PR or do you think it should still be merged?

@taokayan
Copy link
Contributor Author

taokayan commented May 1, 2018 via email

@heifner
Copy link
Contributor

heifner commented May 1, 2018

OBE

@heifner heifner closed this May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants