You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2010/12/14 14:51:00 UTC

svn commit: r1049088 - /wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java

Author: mgrigorov
Date: Tue Dec 14 13:50:59 2010
New Revision: 1049088

URL: http://svn.apache.org/viewvc?rev=1049088&view=rev
Log:
WICKET-3254 Add file name to the exception in case of an error during temp file creation for upload

Print the name of the temporary file when its creation fails for some I/O reason.


Modified:
    wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java

Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java?rev=1049088&r1=1049087&r2=1049088&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java Tue Dec 14 13:50:59 2010
@@ -682,7 +682,8 @@ public class DiskFileItem implements Fil
 			}
 			catch (IOException e)
 			{
-				throw new WicketRuntimeException("Could not create the temp file for upload", e);
+				throw new WicketRuntimeException("Could not create the temp file for upload: " +
+					tempFile.getAbsolutePath(), e);
 			}
 
 			FileCleaner.track(tempFile, this);