From e252e1cc54ad5b64a9ea72731ac10c9b51c9b718 Mon Sep 17 00:00:00 2001 From: Fabian Knorr Date: Sat, 10 Feb 2018 16:03:06 +0100 Subject: [PATCH] Bugfix: simplifying GetConfigFilePath() led to compile error --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 8ea7c86..1dee019 100644 --- a/viper.go +++ b/viper.go @@ -1738,7 +1738,7 @@ func (v *Viper) getConfigFile() (string, error) { // // Useful when you want to write the configPath to logfiles, stdout, etc. // Comes in handy during debugging or when running in production environments. -func GetConfigFilePath() { +func GetConfigFilePath() (string, error) { return v.getConfigFile() }