aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/swarm/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go
index 566b00f48..a3c03c00d 100644
--- a/cmd/swarm/config.go
+++ b/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