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

Function printFailedBlockingInvocationResponse

commands/action.go:232–254  ·  view source on GitHub ↗
(
	qualifiedName QualifiedName,
	header bool,
	result map[string]interface{},
	err error)

Source from the content-addressed store, hash-verified

230}
231
232func printFailedBlockingInvocationResponse(
233 qualifiedName QualifiedName,
234 header bool,
235 result map[string]interface{},
236 err error) error {
237 if isBlockingTimeout(err) {
238 printBlockingTimeoutMsg(
239 qualifiedName.GetNamespace(),
240 qualifiedName.GetEntityName(),
241 getValueFromJSONResponse(ACTIVATION_ID, result))
242 return err
243 } else if isApplicationError(err) {
244 printInvocationMsg(
245 qualifiedName,
246 true,
247 header,
248 result,
249 colorable.NewColorableStderr())
250 return err
251 } else {
252 return handleInvocationError(err, qualifiedName.GetEntityName())
253 }
254}
255
256var actionGetCmd = &cobra.Command{
257 Use: "get ACTION_NAME [FIELD_FILTER | --summary | --url]",

Callers 3

CreateMethod · 0.85
CreateExtendedVersionFunction · 0.85
printInvocationResponseFunction · 0.85

Calls 8

isBlockingTimeoutFunction · 0.85
printBlockingTimeoutMsgFunction · 0.85
getValueFromJSONResponseFunction · 0.85
isApplicationErrorFunction · 0.85
printInvocationMsgFunction · 0.85
handleInvocationErrorFunction · 0.85
GetNamespaceMethod · 0.80
GetEntityNameMethod · 0.80

Tested by

no test coverage detected