Store config in config instead of root directory

This commit is contained in:
TwinProduction committed 2019-12-28 12:55:00 -05:00
1 parent c4f7370397
commit 50cdc159db
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -44,10 +44,10 @@ func Load(configFile string) error {
}
func LoadDefaultConfiguration() error {
err := Load("config.yaml")
err := Load("config/config.yaml")
if err != nil {
if err == ErrConfigFileNotFound {
return Load("config.yml")
return Load("config/config.yml")
}
return err
}