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

Function getJSONFromStringsParamError

commands/action.go:982–993  ·  view source on GitHub ↗
(params []string, keyValueFormat bool, err error)

Source from the content-addressed store, hash-verified

980}
981
982func getJSONFromStringsParamError(params []string, keyValueFormat bool, err error) error {
983 whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, %t) failed: %s\n", params, keyValueFormat, err)
984
985 errMsg := wski18n.T(
986 "Invalid parameter argument '{{.param}}': {{.err}}",
987 map[string]interface{}{
988 "param": fmt.Sprintf("%#v", params),
989 "err": err,
990 })
991
992 return nestedError(errMsg, err)
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)

Callers 1

parseActionFunction · 0.85

Calls 1

nestedErrorFunction · 0.85

Tested by

no test coverage detected