Author: mgrigorov
Date: Tue Dec 14 13:49:08 2010
New Revision: 1049087

URL: http://svn.apache.org/viewvc?rev=1049087&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/trunk/wicket-util/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java

Modified: 
wicket/trunk/wicket-util/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-util/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java?rev=1049087&r1=1049086&r2=1049087&view=diff
==============================================================================
--- 
wicket/trunk/wicket-util/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java
 (original)
+++ 
wicket/trunk/wicket-util/src/main/java/org/apache/wicket/util/upload/DiskFileItem.java
 Tue Dec 14 13:49:08 2010
@@ -655,7 +655,8 @@ public class DiskFileItem implements Fil
                        }
                        catch (IOException e)
                        {
-                               throw new RuntimeException("Could not create 
the temp file for upload", e);
+                               throw new RuntimeException("Could not create 
the temp file for upload: " +
+                                       tempFile.getAbsolutePath(), e);
                        }
 
                        if (fileUploadCleaner != null)


Reply via email to