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

wallet: suggest the use of sweep_unmixable when not_enough_outs_to_mix is thrown #3214

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

stoffu
Copy link
Contributor

@stoffu stoffu commented Jan 31, 2018

@@ -2425,7 +2425,7 @@ namespace tools
catch (const tools::error::not_enough_outs_to_mix& e)
{
er.code = WALLET_RPC_ERROR_CODE_NOT_ENOUGH_OUTS_TO_MIX;
er.message = e.what();
er.message = e.what() + " Please use sweep_dust.";
Copy link
Contributor

Choose a reason for hiding this comment

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

I get a compilation error here:

... error: invalid operands of types ‘const char*’ and ‘const char [24]’ to binary ‘operator+’
       er.message = e.what() + " Please use sweep_dust.";

I fixed it with:

er.message = e.what() + std::string(" Please use sweep_dust.");

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!

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

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

Reviewed

@fluffypony fluffypony merged commit 214d251 into monero-project:master Feb 16, 2018
fluffypony added a commit that referenced this pull request Feb 16, 2018
214d251 wallet: suggest the use of sweep_unmixable when not_enough_outs_to_mix is thrown (stoffu)
@stoffu stoffu deleted the sweep-unmixable-msg branch February 16, 2018 13:47
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