jadams-tresys commented on a change in pull request #204: Provide more detail
for failed assertions
URL: https://github.com/apache/incubator-daffodil/pull/204#discussion_r270988174
##########
File path:
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/parsers/ExpressionEvaluatingParsers.scala
##########
@@ -143,7 +143,9 @@ class AssertExpressionEvaluationParser(
start.setDiscriminator(discrim)
} else {
val message = getAssertFailureMessage(start)
- val diag = new AssertionFailed(decl.schemaFileLocation, start, message)
+ val currentElem = start.infoset
+ val details = "\nParsed value was: " + currentElem.toString
Review comment:
Just pushed up a change that should hopefully address these concerns.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services