diff options
Autocommit at 14.06.2022 @ 07:38
1 files changed, 3 insertions, 2 deletions
| -rw-r--r-- | src/Models/Table.cpp | 5 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index c80c7dd..0d46853 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -40,9 +40,10 @@ void A(std::ifstream& in, List<char>& buffer) { } void throwException(std::ifstream& inFile, unsigned row) { + row++; throw std::logic_error(( - (((((String("Error: Invalid character \"") += inFile.peek()) - += "\" at row ") += row) += "\" and column ") += ((int)inFile.tellg() / (row + 1))) + (((((String("Error: Invalid character \"") += (char)inFile.peek()) + += "\" at row ") += row) += "\" and column ") += ((int)inFile.tellg() / row)) ).get_cstr()); } |
