modules/jdk.packager/src/main/java/com/oracle/tools/packager/linux/LinuxRpmBundler.java

Print this page

        

@@ -290,12 +290,13 @@
                 if (imageDir != null && !Log.isDebug()) {
                     IOUtils.deleteRecursive(imageDir);
                 } else if (imageDir != null) {
                     Log.info(MessageFormat.format(I18N.getString("message.debug-working-directory"), imageDir.getAbsolutePath()));
                 }
-            } catch (FileNotFoundException ex) {
+            } catch (IOException ex) {
                 //noinspection ReturnInsideFinallyBlock
+                Log.debug(ex.getMessage());
                 return null;
             }
         }
     }