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

No warning / error message when user is not registered #3

Open
s-tikhomirov opened this issue May 31, 2017 · 0 comments
Open

No warning / error message when user is not registered #3

s-tikhomirov opened this issue May 31, 2017 · 0 comments

Comments

@s-tikhomirov
Copy link
Collaborator

Some commands require the user to be registered, but do not signal error when this is not the case.

For instance, calling show-balance before register:

✔ Balance of 0xc27cffb5c1be0f72b58b3639d5bad4a92e82ce57

Calling show-balance after register:

✔ Balance of 0xc27cffb5c1be0f72b58b3639d5bad4a92e82ce57
ℹ USD:	0.00
ℹ EUR:	0.00
ℹ GBP:	0.00
ℹ JPY:	0.00
ℹ CNY:	0.00
ℹ SGD:	0.00

In the first case, it may be useful to output a warning prompting the user to register.

Same for other functions that assume that the user is registered, e.g., create-fincontract. If the user is not registered, it starts executing and hangs.

Show an error message when appropriate: "This command requires you to register first: register".

@s-tikhomirov s-tikhomirov changed the title Show warning / error message when user is not registered No warning / error message when user is not registered May 31, 2017
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

No branches or pull requests

1 participant