MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Error

Method Error

command/translatableerror/interpolation_error.go:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12func (e InterpolationError) Error() string {
13 return fmt.Sprint(strings.Replace(e.Err.Error(), "\n", ", ", -1))
14}
15
16func (e InterpolationError) Translate(translate func(string, ...interface{}) string) string {
17 return translate(e.Error())

Callers 1

TranslateMethod · 0.95

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected