1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Improve error reporting when parsing CSV translation file

Fixes #46682.

Also fix unit test suite to separate generic FileAccess CSV testing
from using CSV as translation. And add more CSV translation tests.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
andybarcia
2021-03-19 19:50:53 +01:00
committed by Rémi Verschelde
parent 7188ed5f91
commit 553f4f8dce
6 changed files with 54 additions and 23 deletions

View File

@@ -441,6 +441,11 @@ Vector<String> FileAccess::get_csv_line(const String &p_delim) const {
current += c;
}
}
if (in_quote) {
WARN_PRINT(vformat("Reached end of file before closing '\"' in CSV file '%s'.", get_path()));
}
strings.push_back(current);
return strings;