From 0ff3ec1f672faa92b4530bf2e446018450ac7823 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 11 May 2016 14:19:12 +0100 Subject: [PATCH] HADOOP-13125 FS Contract tests don't report FS initialization errors well. (stevel) --- .../apache/hadoop/fs/contract/AbstractBondedFSContract.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractBondedFSContract.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractBondedFSContract.java index 24756393587..e7766f3d929 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractBondedFSContract.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractBondedFSContract.java @@ -73,7 +73,8 @@ public abstract class AbstractBondedFSContract extends AbstractFSContract { } catch (URISyntaxException e) { throw new IOException("Invalid URI " + fsName); } catch (IllegalArgumentException e) { - throw new IOException("Invalid URI " + fsName, e); + throw new IOException("Unable to initialize filesystem " + fsName + + ": " + e, e); } } else { LOG.info("skipping tests as FS name is not defined in "