You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-27 15:57:02 +00:00
Merge pull request #72824 from dalexeev/gds-invalid-char-error
GDScript: Fix invalid character error message
This commit is contained in:
@@ -1610,9 +1610,9 @@ GDScriptTokenizer::Token GDScriptTokenizer::scan() {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
if (is_whitespace(c)) {
|
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 {
|
} 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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user