mirror of
https://github.com/spf13/viper
synced 2025-05-06 12:17:18 +00:00
Fix documentation in util
This commit is contained in:
parent
52447662c7
commit
7ae890a1c6
1 changed files with 2 additions and 2 deletions
4
util.go
4
util.go
|
@ -29,12 +29,12 @@ import (
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Denotes failing to parse configuration file.
|
// ConfigParseError denotes failing to parse configuration file.
|
||||||
type ConfigParseError struct {
|
type ConfigParseError struct {
|
||||||
err error
|
err error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the formatted configuration error.
|
// Error returns the formatted configuration error.
|
||||||
func (pe ConfigParseError) Error() string {
|
func (pe ConfigParseError) Error() string {
|
||||||
return fmt.Sprintf("While parsing config: %s", pe.err.Error())
|
return fmt.Sprintf("While parsing config: %s", pe.err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue