Skip to content

Commit 79b19ca

Browse files
committed
[FAB-3440] Fix the orderer panic msg
This simply helps the panic msg to be more clear to follow. Change-Id: I04e86a9a6679c612759f5b82440c10648e9a82d2 Signed-off-by: Baohua Yang <[email protected]>
1 parent ecc29dd commit 79b19ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/configtx/tool/localconfig/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@ func Load(profile string) *Profile {
177177

178178
err := config.ReadInConfig()
179179
if err != nil {
180-
logger.Panic("Error reading configuration:", err)
180+
logger.Panic("Error reading configuration: ", err)
181181
}
182182
logger.Debugf("Using config file: %s", config.ConfigFileUsed())
183183

184184
var uconf TopLevel
185185
err = viperutil.EnhancedExactUnmarshal(config, &uconf)
186186
if err != nil {
187-
logger.Panic("Error unmarshaling config into struct:", err)
187+
logger.Panic("Error unmarshaling config into struct: ", err)
188188
}
189189

190190
result, ok := uconf.Profiles[profile]
191191
if !ok {
192-
logger.Panic("Could not find profile", profile)
192+
logger.Panic("Could not find profile: ", profile)
193193
}
194194

195195
result.completeInitialization(filepath.Dir(config.ConfigFileUsed()))

0 commit comments

Comments
 (0)