Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

fix(dynamodb): name the table in the ResourceNotFoundException message (#2929)

Hector Ventura58b2e5ff9610
diff --git a/src/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbService.java b/src/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbService.java
index c690975b29..ae55a3cec6 100644
--- a/src/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbService.java
+++ b/src/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbService.java
@@ -2866,7 +2866,8 @@ public class DynamoDbService implements ResourceProvider {
}
private AwsException resourceNotFoundException(String tableName) {
- return new AwsException("ResourceNotFoundException", "Requested resource not found", 400);
+ return new AwsException("ResourceNotFoundException",
+ "Requested resource not found: Table: " + tableName + " not found", 400);
}
public record UpdateResult(JsonNode newItem, JsonNode oldItem) {}