gengliangwang commented on code in PR #38302:
URL: https://github.com/apache/spark/pull/38302#discussion_r1004136708
##########
core/src/main/scala/org/apache/spark/SparkThrowableHelper.scala:
##########
@@ -119,4 +121,16 @@ private[spark] object SparkThrowableHelper {
}
}
}
+
+ def getMessage(throwable: Throwable): String = {
+ toJsonString { generator =>
+ val g = generator.setPrettyPrinter(new MinimalPrettyPrinter)
+ g.writeStartObject()
+ g.writeStringField("errorClass", throwable.getClass.getCanonicalName)
+ g.writeObjectFieldStart("messageParameters")
Review Comment:
Could you share a screenshot of the error message? This line looks odd to
me: it just writes a constant string
--
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]