-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CR does two main things: 1) Patch error msg when core.yaml is not found 2) Restore the use of version and help commands in case of config error. The version of Viper currently used gives a confusing error message when the config file is not found: $ ./peer version 2018-06-02 21:00:42.397 EDT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" With this update the error clearly spells out what the problem is: $ .build/bin/peer node start 2018-07-17 09:17:54.148 CEST [main] main -> ERRO 001 Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains core.yaml In addition, if really only the version is requeted this works even if the config file isn't found. Same is true with help. $ ./peer version peer: Version: 1.3.0 Commit SHA: 27cda7a1a Go version: go1.10.3 OS/Arch: darwin/amd64 Experimental features: true Chaincode: Base Image Version: 0.4.10 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger Patch-set 2: limit change to merely what's needed to address the problem Patch-set 3: fix error msg displayed by Fabric when config file is not found, limit init config to commands that need it, plus minor fix on format of crypto config not found error msg. Patch-set 4: fix unit test depending on modified error msg. Patch-set 5: some clean up to fix a few more unit tests Patch-set 6: more clean up Change-Id: I7c84c121c1493c48ea92c83b62ecd99c887ca316 Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
- Loading branch information
1 parent
3d866a7
commit 6aeb59c
Showing
9 changed files
with
98 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters