Skip to content

Commit 22c267a

Browse files
committed
More descriptive message
1 parent c13185d commit 22c267a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/fixtures/s3-fixture/src/main/java/fixture/s3/S3HttpHandler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@ public void handle(final HttpExchange exchange) throws IOException {
373373
if (blobs.remove("/" + bucket + "/" + blobName) == null) {
374374
errorBuilder.append("<Error><Code>NoSuchKey</Code><Key>")
375375
.append(blobName)
376-
.append("</Key><Message>")
376+
.append("</Key><Message>Blob with path [/")
377+
.append(bucket)
378+
.append('/')
379+
.append(blobName)
380+
.append("] not found in ")
377381
.append(blobs.keySet())
378382
.append("</Message><VersionId>")
379383
.append(UUIDs.randomBase64UUID())

0 commit comments

Comments
 (0)