MCPcopy
hub / github.com/spf13/viper / Error

Method Error

util.go:31–33  ·  view source on GitHub ↗

Error returns the formatted configuration error.

()

Source from the content-addressed store, hash-verified

29
30// Error returns the formatted configuration error.
31func (pe ConfigParseError) Error() string {
32 return fmt.Sprintf("While parsing config: %s", pe.err.Error())
33}
34
35// Unwrap returns the wrapped error.
36func (pe ConfigParseError) Unwrap() error {

Callers 14

TestGetConfigFileFunction · 0.45
TestUnmarshalExactFunction · 0.45
TestReadConfigFunction · 0.45
absPathifyFunction · 0.45
TestDefaultCodecRegistryFunction · 0.45
TestCodec_DecodeFunction · 0.45
TestCodec_DecodeFunction · 0.45

Calls

no outgoing calls

Tested by 13

TestGetConfigFileFunction · 0.36
TestUnmarshalExactFunction · 0.36
TestReadConfigFunction · 0.36
TestDefaultCodecRegistryFunction · 0.36
TestCodec_DecodeFunction · 0.36
TestCodec_DecodeFunction · 0.36
TestCodec_DecodeFunction · 0.36