|
@@ -118,7 +118,11 @@ class Delete {
|
|
} catch(FileNotFoundException fnfe) {
|
|
} catch(FileNotFoundException fnfe) {
|
|
throw fnfe;
|
|
throw fnfe;
|
|
} catch (IOException ioe) {
|
|
} catch (IOException ioe) {
|
|
- throw new IOException(ioe.getMessage() + ". Consider using -skipTrash option", ioe);
|
|
|
|
|
|
+ String msg = ioe.getMessage();
|
|
|
|
+ if (ioe.getCause() != null) {
|
|
|
|
+ msg += ": " + ioe.getCause().getMessage();
|
|
|
|
+ }
|
|
|
|
+ throw new IOException(msg + ". Consider using -skipTrash option", ioe);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return success;
|
|
return success;
|