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

Tweak the invalid Unicode error message to be more descriptive

This closes #28503.
This commit is contained in:
Hugo Locurcio
2020-03-16 18:55:34 +01:00
parent 2aa832f415
commit 05c95837cb

View File

@@ -1402,7 +1402,7 @@ String String::utf8(const char *p_utf8, int p_len) {
bool String::parse_utf8(const char *p_utf8, int p_len) { bool String::parse_utf8(const char *p_utf8, int p_len) {
#define _UNICERROR(m_err) print_line("Unicode error: " + String(m_err)); #define _UNICERROR(m_err) print_line("Unicode parsing error: " + String(m_err) + ". Is the string valid UTF-8?");
if (!p_utf8) if (!p_utf8)
return true; return true;