dan-s1 commented on code in PR #8224:
URL: https://github.com/apache/nifi/pull/8224#discussion_r1446420525
##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateCsv.java:
##########
@@ -514,8 +514,11 @@ public void process(OutputStream out) throws IOException {
} catch (final SuperCsvException e) {
valid.set(false);
+ final String coordinates =
String.format("{lineNo=%d, rowNo=%d, columnNo=%d}",
e.getCsvContext().getLineNumber(),
+ e.getCsvContext().getRowNumber(),
e.getCsvContext().getColumnNumber());
+ final String errorMessage =
e.getLocalizedMessage() + " " + coordinates;
Review Comment:
Again maybe a personal preference but adding the word `at` gives more
context to the coordinates string
```suggestion
final String errorMessage =
e.getLocalizedMessage() + " at " + coordinates;
```
--
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]