One more error fix in the server command

And some other small code clean-up.

See #1502
This commit is contained in:
Anthony Fok 2015-12-02 11:56:36 -07:00
parent c5287e7817
commit d48781badf
8 changed files with 26 additions and 23 deletions

View file

@ -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)