MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / getJSONFromStringsAnnotError

Function getJSONFromStringsAnnotError

commands/action.go:995–1006  ·  view source on GitHub ↗
(annots []string, keyValueFormat bool, err error)

Source from the content-addressed store, hash-verified

993}
994
995func getJSONFromStringsAnnotError(annots []string, keyValueFormat bool, err error) error {
996 whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, %t) failed: %s\n", annots, keyValueFormat, err)
997
998 errMsg := wski18n.T(
999 "Invalid annotation argument '{{.annotation}}': {{.err}}",
1000 map[string]interface{}{
1001 "annotation": fmt.Sprintf("%#v", annots),
1002 "err": err,
1003 })
1004
1005 return nestedError(errMsg, err)
1006}
1007
1008func invalidFieldFilterError(field string) error {
1009 errMsg := wski18n.T(

Callers 1

parseActionFunction · 0.85

Calls 1

nestedErrorFunction · 0.85

Tested by

no test coverage detected