浏览代码

HADOOP-13125 FS Contract tests don't report FS initialization errors well. (stevel)

Steve Loughran 9 年之前
父节点
当前提交
3553261400

+ 2 - 1
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 "