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

Function entityNameError

commands/shared.go:27–35  ·  view source on GitHub ↗
(entityName string)

Source from the content-addressed store, hash-verified

25)
26
27func entityNameError(entityName string) error {
28 errMsg := wski18n.T(
29 "An entity name, '{{.name}}', was provided instead of a namespace. Valid namespaces are of the following format: /NAMESPACE.",
30 map[string]interface{}{
31 "name": entityName,
32 })
33
34 return whisk.MakeWskError(errors.New(errMsg), whisk.EXIT_CODE_ERR_GENERAL, whisk.DISPLAY_MSG, whisk.DISPLAY_USAGE)
35}
36
37func entityListError(err error, namespace string, kind string) error {
38 whisk.Debug(whisk.DbgError, "Client.%s.List(%s) error: %s\n", kind, namespace, err)

Callers 3

rule.goFile · 0.85
package.goFile · 0.85
trigger.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected