There needs to be the same number of place-holders as there are replacements.
Fixes an issue introduced in r1453239.
Identified by FindBugs running against the Tomcat code base (which has a package renamed copy of FileUpload).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1458220 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/fileupload/FileUploadBase.java b/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
index 4f7114e..6f9316f 100644
--- a/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
+++ b/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
@@ -348,7 +348,7 @@
} catch (FileUploadIOException e) {
throw (FileUploadException) e.getCause();
} catch (IOException e) {
- throw new IOFileUploadException(format("Processing of %s request failed. ",
+ throw new IOFileUploadException(format("Processing of %s request failed. %s",
MULTIPART_FORM_DATA, e.getMessage()), e);
}
final FileItemHeaders fih = item.getHeaders();