Skip to content

Commit

Permalink
fixed line length message error
Browse files Browse the repository at this point in the history
  • Loading branch information
BacicaFlorinTelus committed Sep 28, 2021
1 parent 86d7ec7 commit 2df6f70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Parser(private val bufferedReader: BufferedReader) {
try {
length?.let {
if (records[lineIndex].str.length != it) {
records[lineIndex].issues.add(FileParserError("Line length should be $length but was ${records[lineIndex].str.length}"))
records[lineIndex].issues.add(FileParserError("Line length should be ${length + 1} but was ${records[lineIndex].str.length + 1}"))
}
}
val recordParser = RecordParser(records[lineIndex].str, lineIndex)
Expand Down

0 comments on commit 2df6f70

Please sign in to comment.