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 "