-
Notifications
You must be signed in to change notification settings - Fork 86
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
chore: improve error message for 'dfx cycles convert'. #4019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linked ticket includes a recommendation for what messages to display. This includes displaying both the ledger account id and the identity's principal, in addition to the commands to display these. (note that neither of the listed commands has an option to generate a QR code, though).
Fixed at 1eacf6b. |
@sesi200 @ericswanson-dfinity For now the diagnosis error looks like pretty much as we expected
The only problem is about Is it possible to remove #[error("Diagnosis was added here.")] as it won't help on figuring out anything from it? |
I think we should remove The other option to removing it is to explicitly filter it out here, but then we'd just filter out the only use of that context error. Better remove it entirely |
Thanks. I've removed it at e9a127a. One thing is that it still inserts an empty error string, so I have to filter it out at where you pointed out. |
Description
If users run
dfx cycles convert
without enough ICP tokens, show additional messages to indicate what to do next.Actually, it's not just an issue with
dfx cycles convert
, if you calldfx ledger transfer
you will hit the same error. So we fixed it at the ledger function call level.Fixes # (issue)
SDK-1868
How Has This Been Tested?
A new e2e test added.
Checklist: