From 0b14427e6c081c8110eac7678b49c01010156946 Mon Sep 17 00:00:00 2001 From: Boris Shkolnik Date: Tue, 18 May 2010 22:38:07 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 3 +++ src/java/org/apache/hadoop/fs/FsShell.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 00a67087d5..33914ad021 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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) diff --git a/src/java/org/apache/hadoop/fs/FsShell.java b/src/java/org/apache/hadoop/fs/FsShell.java index 12abe07a8f..9815a2721a 100644 --- a/src/java/org/apache/hadoop/fs/FsShell.java +++ b/src/java/org/apache/hadoop/fs/FsShell.java @@ -1842,7 +1842,8 @@ public int run(String argv[]) throws Exception { "... 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; }