-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
tendermint node: show useful error when tendermint has not been initialised #4303
Labels
T:enhancement
Type: Enhancement
Comments
melekes
added
help wanted
good first issue
Contributions Welcome!!
T:enhancement
Type: Enhancement
labels
Jan 13, 2020
melekes
changed the title
tendermint node: useful error when tendermint has not been initialised
tendermint node: show useful error when tendermint has not been initialised
Jan 13, 2020
This would be my first issue but I can take a look into this and see if I can come up with a PR shortly! |
#4312 - PR here! |
Question: should we initialize Tendermint instead of showing an error? pros:
cons:
|
I think we should throw a hard error. Explicit is better than implicit, and this is something that would be done rarely. |
melekes
added a commit
that referenced
this issue
Mar 2, 2020
Closes #4303 Before: ``` TMHOME="/Users/daniel/go/src/github.com/tendermint/thome" tendermint node --proxy_app=unix:///Users/daniel/go/src/github.com/kvstore/example.sock ERROR: 1 error(s) decoding: * error decoding 'consensus.create_empty_blocks_interval': time: invalid duration ``` After: ``` $ TMHOME=/tmp ./build/tendermint node --proxy_app=kvstore ERROR: failed to create node: Couldn't read GenesisDoc file: open /tmp/config/genesis.json: no such file or directory ```
5 tasks
mergify bot
pushed a commit
that referenced
this issue
Mar 2, 2020
Closes #4303 Before: ``` TMHOME="/Users/daniel/go/src/github.com/tendermint/thome" tendermint node --proxy_app=unix:///Users/daniel/go/src/github.com/kvstore/example.sock ERROR: 1 error(s) decoding: * error decoding 'consensus.create_empty_blocks_interval': time: invalid duration ``` After: ``` $ TMHOME=/tmp ./build/tendermint node --proxy_app=kvstore ERROR: failed to create node: Couldn't read GenesisDoc file: open /tmp/config/genesis.json: no such file or directory ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#4286
We should output more useful error instead of ^ for better usability.
The text was updated successfully, but these errors were encountered: