Skip to content

Commit

Permalink
details were missing from console in case of a schema failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkhi committed Nov 28, 2023
1 parent cfdacce commit 9de2172
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
case _ =>
}

CsvValidatorCmdApp.validate(
val cliResult = CsvValidatorCmdApp.validate(
TextFile(Paths.get(csvFilePath), csvEncoding, validateEncoding),
TextFile(Paths.get(csvSchemaFilePath), csvSchemaEncoding),
failOnFirstError,
Expand All @@ -161,12 +161,12 @@ object CsvValidatorUi extends SimpleSwingApplication {
trace = false,
progress,
rowCallback
)._2 match {
)

cliResult._2 match {
case SystemExitCodes.ValidCsv => toConsole("PASS")
case _ => toConsole("FAIL")
case _ => toConsole(cliResult._1)
}


}

/**
Expand Down

0 comments on commit 9de2172

Please sign in to comment.