Skip to content

Commit 9bc5e04

Browse files
authored
Update wrong error message "action does not exist". (#5293)
1 parent 8c140e0 commit 9bc5e04

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/v2/FunctionPullingContainerProxy.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,8 @@ class FunctionPullingContainerProxy(
905905
logging.error(this, s"An unknown DB connection error occurred while fetching an action: $e.")
906906
ExecutionResponse.whiskError(Messages.actionFetchErrorWhileInvoking)
907907
}
908-
logging.error(
909-
this,
910-
s"Error to fetch action ${msg.action} for msg ${msg.activationId}, error is ${t.getMessage}")
908+
val errMsg = s"Error to fetch action ${msg.action} for msg ${msg.activationId}, error is ${t.getMessage}"
909+
logging.error(this, errMsg)
911910

912911
val context = UserContext(msg.user)
913912
val activation = generateFallbackActivation(action, msg, response)
@@ -921,7 +920,7 @@ class FunctionPullingContainerProxy(
921920
storeActivation(msg.transid, activation, msg.blocking, context)
922921

923922
// in case action is removed container proxy should be terminated
924-
Future.failed(new IllegalStateException("action does not exist"))
923+
Future.failed(new IllegalStateException(errMsg))
925924
}
926925
} else {
927926
// Iff the current namespace is blacklisted, an active-ack is only produced to keep the loadbalancer protocol

0 commit comments

Comments
 (0)