HADOOP-6627. 'Bad Connection to FS' message in FSShell should print message from the exception

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@945940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Boris Shkolnik 2010-05-18 22:38:07 +00:00
parent 759494f3a1
commit 0b14427e6c
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,9 @@ Hadoop Change Log
Trunk (unreleased changes)
IMPROVEMENTS
HADOOP-6627. "Bad Connection to FS" message in FSShell should print
message from the exception (boryas)
HADOOP-6769. Add an API in FileSystem to get FileSystem instances based
on users(ddas via boryas)

View File

@ -1842,7 +1842,8 @@ public class FsShell extends Configured implements Tool {
"... command aborted.");
return exitCode;
} catch (IOException e) {
System.err.println("Bad connection to FS. command aborted.");
System.err.println("Bad connection to FS. Command aborted. Exception: " +
e.getLocalizedMessage());
return exitCode;
}