Polishing contribution

Closes gh-27216
This commit is contained in:
Rossen Stoyanchev
2021-07-27 17:41:30 +01:00
parent a747cc3e91
commit 6c68419073
2 changed files with 17 additions and 23 deletions

View File

@@ -356,7 +356,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem
this.isFilePart = (MultipartUtils.getFileName(headers) != null);
this.partSize = 0;
if (maxParts > 0 && index > maxParts) {
throw new DecodingException("Too many parts (" + index + "/" + maxParts + " allowed)");
throw new DecodingException("Too many parts: Part[" + index + "] but maxParts=" + maxParts);
}
return this.storageFactory.newStreamStorageForPartBody(headers, index);
}