MCPcopy
hub / github.com/cloudfoundry/cli / Translate

Method Translate

command/translatableerror/json_syntax_error.go:11–15  ·  view source on GitHub ↗
(translate func(string, ...interface{}) string)

Source from the content-addressed store, hash-verified

9}
10
11func (e JSONSyntaxError) Translate(translate func(string, ...interface{}) string) string {
12 return translate(e.Error(), map[string]interface{}{
13 "Err": e.Err.Error(),
14 })
15}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
ErrorMethod · 0.65

Tested by

no test coverage detected