diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-19 13:28:12 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-19 13:28:12 +0200 |
commit | 19d2533b42e1fc25f338328d11217472ebbcfb18 (patch) | |
tree | 2ea632a58c9d6d6921393ef2ad215d356bb760af /core/io/file_access.cpp | |
parent | 7188ed5f9140f6e2a38a24ac3364bba741b45135 (diff) | |
parent | 553f4f8dcea90eb6241f7906479f5e7d24f02abd (diff) | |
download | redot-engine-19d2533b42e1fc25f338328d11217472ebbcfb18.tar.gz |
Merge pull request #47169 from AndyBarcia/completeCSVErrors
Improve error reporting when parsing CSV translation files.
Diffstat (limited to 'core/io/file_access.cpp')
-rw-r--r-- | core/io/file_access.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/io/file_access.cpp b/core/io/file_access.cpp index a6a1a224b3..b669afdc99 100644 --- a/core/io/file_access.cpp +++ b/core/io/file_access.cpp @@ -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; |