fix stack trace when missing cscli in config file (#607)
Co-authored-by: AlteredCoder <AlteredCoder>
This commit is contained in:
parent
50ee846e87
commit
e8709074f0
|
@ -47,6 +47,10 @@ func initConfig() {
|
|||
if err := csConfig.LoadConfigurationFile(ConfigFilePath); err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
}
|
||||
if csConfig.Cscli == nil {
|
||||
log.Fatalf("missing 'cscli' configuration in '%s', exiting", ConfigFilePath)
|
||||
}
|
||||
|
||||
if cwhub.HubBranch == "" && csConfig.Cscli.HubBranch != "" {
|
||||
cwhub.HubBranch = csConfig.Cscli.HubBranch
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue