diff --git a/src/test/scala/com/typesafe/config/impl/TestUtils.scala b/src/test/scala/com/typesafe/config/impl/TestUtils.scala index 543fcb93..9012328b 100644 --- a/src/test/scala/com/typesafe/config/impl/TestUtils.scala +++ b/src/test/scala/com/typesafe/config/impl/TestUtils.scala @@ -303,7 +303,9 @@ abstract trait TestUtils { case e => "tokenizer failed: " + e.getMessage(); } - throw new AssertionError(parserName + " parser did wrong thing on '" + s + "', " + tokens, t) + // don't use AssertionError because it seems to keep Eclipse + // from showing the causing exception in JUnit view for some reason + throw new Exception(parserName + " parser did wrong thing on '" + s + "', " + tokens, t) } }