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 (
func ReadConfig(filename string) error {
viper.SetConfigName(filename)
viper.AddConfigPath(".")
viper.SetConfigFile(filename)
err := viper.ReadInConfig()
if err != nil {
return errors.New(err.Error() + ("Fatal error in config file."))
......
Supports Markdown
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