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

Function handleInvocationError

commands/action.go:1044–1059  ·  view source on GitHub ↗
(err error, entityName string)

Source from the content-addressed store, hash-verified

1042}
1043
1044func handleInvocationError(err error, entityName string) error {
1045 whisk.Debug(
1046 whisk.DbgError,
1047 "Client.Actions.Invoke(%s) error: %s\n",
1048 entityName,
1049 err)
1050
1051 errMsg := wski18n.T(
1052 "Unable to invoke action '{{.name}}': {{.err}}",
1053 map[string]interface{}{
1054 "name": entityName,
1055 "err": err,
1056 })
1057
1058 return nestedError(errMsg, err)
1059}
1060
1061func actionListError(entityName string, options *whisk.ActionListOptions, err error) error {
1062 whisk.Debug(whisk.DbgError, "Client.Actions.List(%s, %#v) error: %s\n", entityName, options, err)

Callers 2

printInvocationResponseFunction · 0.85

Calls 1

nestedErrorFunction · 0.85

Tested by

no test coverage detected