summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-12-02 11:56:36 -0700
committerAnthony Fok <foka@debian.org>2015-12-02 11:56:36 -0700
commitd48781badf4bf26bffe116365daf653b5eaa5935 (patch)
tree69d9161a8647fbbb6d8de8f1fa3a3206c15babb6 /commands/server.go
parentc5287e78170474abcf8bbb3aa0fd837de2bafaaa (diff)
One more error fix in the server command
And some other small code clean-up. See #1502
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go
index 378637b6c..ec6b53149 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -1,4 +1,4 @@
-// Copyright © 2013-14 Steve Francia <spf@spf13.com>.
+// Copyright © 2013-2015 Steve Francia <spf@spf13.com>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -94,7 +94,9 @@ func init() {
}
func server(cmd *cobra.Command, args []string) error {
- InitializeConfig()
+ if err := InitializeConfig(); err != nil {
+ return err
+ }
if cmd.Flags().Lookup("disableLiveReload").Changed {
viper.Set("DisableLiveReload", disableLiveReload)