xkrogen commented on a change in pull request #34009:
URL: https://github.com/apache/spark/pull/34009#discussion_r709612275



##########
File path: core/src/main/scala/org/apache/spark/TestUtils.scala
##########
@@ -260,7 +260,8 @@ private[spark] object TestUtils {
       contains = contain(e, msg)
     }
     assert(contains,
-      s"Exception tree doesn't contain the expected exception ${typeMsg}with 
message: $msg")
+      s"Exception tree doesn't contain the expected exception ${typeMsg}with 
message: $msg\n" +
+        Utils.exceptionString(e))

Review comment:
       I found this small adjustment really useful when using 
`assertExceptionMsg`, to be able to see the actual output when the expectation 
doesn't match.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to