Skip to content

Commit

Permalink
[FAB-3440] Fix the orderer panic msg
Browse files Browse the repository at this point in the history
This simply helps the panic msg to be more clear to follow.

Change-Id: I04e86a9a6679c612759f5b82440c10648e9a82d2
Signed-off-by: Baohua Yang <baohyang@cn.ibm.com>
  • Loading branch information
yeasy committed Apr 28, 2017
1 parent ecc29dd commit 79b19ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/configtx/tool/localconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,19 @@ func Load(profile string) *Profile {

err := config.ReadInConfig()
if err != nil {
logger.Panic("Error reading configuration:", err)
logger.Panic("Error reading configuration: ", err)
}
logger.Debugf("Using config file: %s", config.ConfigFileUsed())

var uconf TopLevel
err = viperutil.EnhancedExactUnmarshal(config, &uconf)
if err != nil {
logger.Panic("Error unmarshaling config into struct:", err)
logger.Panic("Error unmarshaling config into struct: ", err)
}

result, ok := uconf.Profiles[profile]
if !ok {
logger.Panic("Could not find profile", profile)
logger.Panic("Could not find profile: ", profile)
}

result.completeInitialization(filepath.Dir(config.ConfigFileUsed()))
Expand Down

0 comments on commit 79b19ca

Please sign in to comment.