From 54e9c4bd146518b220ff48ae5d47caee281bacef Mon Sep 17 00:00:00 2001 From: Brady Svedin Date: Wed, 24 Apr 2024 13:10:36 -0600 Subject: [PATCH] Set task name to custom context with reporting a task not found in the aws adapter. --- .../kotlin/com/lightningkite/lightningserver/aws/AwsAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-aws/src/main/kotlin/com/lightningkite/lightningserver/aws/AwsAdapter.kt b/server-aws/src/main/kotlin/com/lightningkite/lightningserver/aws/AwsAdapter.kt index 1c6ba170..482e04de 100644 --- a/server-aws/src/main/kotlin/com/lightningkite/lightningserver/aws/AwsAdapter.kt +++ b/server-aws/src/main/kotlin/com/lightningkite/lightningserver/aws/AwsAdapter.kt @@ -334,7 +334,7 @@ abstract class AwsAdapter : RequestStreamHandler, Resource { return coroutineScope { @Suppress("UNCHECKED_CAST") val task = Tasks.tasks[event.taskName] as Task? if (task == null) { - exceptionSettings().report(AwsTaskInvokeException("Task ${event.taskName} not found")) + exceptionSettings().report(AwsTaskInvokeException("Task ${event.taskName} not found"), event.taskName) logger.error("Task ${event.taskName} not found") APIGatewayV2HTTPResponse(statusCode = 404, body = "Task ${event.taskName} not found") } else try {