cmd/swarm: return error early in buildConfig function

pull/15748/head
Janos Guljas 7 years ago
parent dd5ae4fd8e
commit 820cf09c98
  1. 3
      cmd/swarm/config.go

@ -98,6 +98,9 @@ func buildConfig(ctx *cli.Context) (config *bzzapi.Config, err error) {
config = bzzapi.NewDefaultConfig()
//first load settings from config file (if provided)
config, err = configFileOverride(config, ctx)
if err != nil {
return nil, err
}
//override settings provided by environment variables
config = envVarsOverride(config)
//override settings provided by command line

Loading…
Cancel
Save