xinglin commented on a change in pull request #4034: URL: https://github.com/apache/hadoop/pull/4034#discussion_r820035459
########## File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicyDefault.java ########## @@ -191,8 +191,8 @@ public boolean moveToTrash(Path path) throws IOException { cause = e; } } - throw (IOException) - new IOException("Failed to move to trash: " + path).initCause(cause); + throw (IOException) new IOException( Review comment: yeah, it is sort of intentional: I added to print the trashPath as well and we can not fit in one line, thus breaking into two lines. it is changed from ``` throw (IOException) new IOException("Failed to move to trash" + path).initCause(cause); ``` to ``` throw (IOException) new IOException( "Failed to move " + path + " to trash " + trashPath).initCause(cause); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org