浏览代码

commit af145ec13ca7b67027568e80e2043c8aa690c911
Author: Boris Shkolnik <borya@yahoo-inc.com>
Date: Thu Mar 11 16:58:55 2010 -0800

HADOOP:6627 from https://issues.apache.org/jira/secure/attachment/12438455/HADOOP-6627-BP20.patch

+++ b/YAHOO-CHANGES.txt
+ HADOOP-6627. Bad Connection to FS" message in FSShell should print
+ message from the exception (boryas)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077313 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年之前
父节点
当前提交
be4a89fe7b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/org/apache/hadoop/fs/FsShell.java

+ 2 - 1
src/core/org/apache/hadoop/fs/FsShell.java

@@ -1741,7 +1741,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;
     }