mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Bugfix: simplifying GetConfigFilePath() led to compile error
This commit is contained in:
parent
b6a7a50b2f
commit
e252e1cc54
1 changed files with 1 additions and 1 deletions
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 a new issue