jw3 commented on a change in pull request #520:
URL: https://github.com/apache/daffodil/pull/520#discussion_r608140948
##########
File path: daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
##########
@@ -888,6 +899,23 @@ object Main extends Logging {
val loc =
parseResult.resultState.currentLocation.asInstanceOf[DataLoc]
displayDiagnostics(parseResult)
+ // allow raw validation output
+ if(!parseResult.isProcessingError) {
+ (parseOpts.valOutput.toOption, parseResult.validationResult())
match {
+ case (Some(of), Some(vr: RawValidationResult)) =>
+ Try(new FileOutputStream(of)) match {
+ case Success(os) =>
+ os.write(vr.rawValidationData())
+ os.close()
+ case Failure(ex) =>
+ log(LogLevel.Error, "Failure writing raw validation
data to file.", ex)
Review comment:
Ok, I like changing it to a warning.
--
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]