Commit 16872afa authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Use the actual filename provided when reading config.

parent d5d3f8b1
...@@ -7,8 +7,7 @@ import ( ...@@ -7,8 +7,7 @@ import (
func ReadConfig(filename string) error { func ReadConfig(filename string) error {
viper.SetConfigName(filename) viper.SetConfigFile(filename)
viper.AddConfigPath(".")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
return errors.New(err.Error() + ("Fatal error in config file.")) return errors.New(err.Error() + ("Fatal error in config file."))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment