From ed2230ec7df9f07fd640609ba6eb64e85906e9bb 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 "