diff --git a/.DS_Store b/.DS_Store index 69918c95..3203971c 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/conf/conf.go b/conf/conf.go index c95a89c2..287ad5d8 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -1,6 +1,7 @@ package conf import ( + "fmt" "os" "os/user" "strings" @@ -33,6 +34,10 @@ type ServerConfig struct { } func ReadConf(confPath string) (checkConf Config) { + if isExist(confPath) == false { + fmt.Printf("Config file(%s) Not Found.\nPlease create file.", confPath) + os.Exit(1) + } // Read Config _, err := toml.DecodeFile(confPath, &checkConf) if err != nil {