mirror of
https://github.com/godotengine/godot
synced 2024-09-05 09:28:51 +00:00
Merge pull request #72824 from dalexeev/gds-invalid-char-error
GDScript: Fix invalid character error message
This commit is contained in:
commit
cfae05094a
|
@ -1610,9 +1610,9 @@ GDScriptTokenizer::Token GDScriptTokenizer::scan() {
|
|||
|
||||
default:
|
||||
if (is_whitespace(c)) {
|
||||
return make_error(vformat(R"(Invalid white space character "\\u%X".)", static_cast<int32_t>(c)));
|
||||
return make_error(vformat(R"(Invalid white space character U+%04X.)", static_cast<int32_t>(c)));
|
||||
} else {
|
||||
return make_error(vformat(R"(Unknown character "%s".)", String(&c, 1)));
|
||||
return make_error(vformat(R"(Invalid character "%c" (U+%04X).)", c, static_cast<int32_t>(c)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue