Skip to content

Commit

Permalink
cmd/swarm: return error early in buildConfig function
Browse files Browse the repository at this point in the history
  • Loading branch information
janos authored and prestonvanloon committed Apr 2, 2018
1 parent 19c1e45 commit fb23714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/swarm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,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
Expand Down

0 comments on commit fb23714

Please sign in to comment.