mirror of https://github.com/spf13/viper.git
Bugfix: simplifying GetConfigFilePath() led to compile error
This commit is contained in:
parent
b6a7a50b2f
commit
e252e1cc54
2
viper.go
2
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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue