diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-16 19:34:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 19:34:22 +0100 |
commit | 77c88a634ca5879d0bb171b0cea4d37ccd4f796b (patch) | |
tree | 7da4d8492cbdd95c4b8ea22c8826e6f49d736dc1 | |
parent | f9decec1bc1164f61e6d238e9ea7dad0e6858149 (diff) | |
parent | 05c95837cb6510dbdfa62af437d4ad442a42d73c (diff) |
Merge pull request #37097 from Calinou/tweak-invalid-unicode-error-message
Tweak the invalid Unicode error message to be more descriptive
-rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 1d4d9c2dfd..da089dce40 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -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) { -#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) return true; |