Skip to content

Commit 46ebe2e

Browse files
author
Steve Vaughan Jr
committed
Include the cause in the message
1 parent 423ab02 commit 46ebe2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,8 @@ public void shutdown(boolean deleteDfsDir, boolean closeFileSystem) {
21622162
Exception cause = ExitUtil.getFirstExitException();
21632163
LOG.error("Test resulted in an unexpected exit", cause);
21642164
ExitUtil.resetFirstExitException();
2165-
throw new AssertionError("Test resulted in an unexpected exit", cause);
2165+
throw new AssertionError("Test resulted in an unexpected exit: " +
2166+
cause.toString(), cause);
21662167
}
21672168
}
21682169
if (closeFileSystem) {

0 commit comments

Comments
 (0)