You've already forked godot
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:
committed by
Rémi Verschelde
parent
7188ed5f91
commit
553f4f8dce
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user