GDScript: Fix invalid character error message

This commit is contained in:
Danil Alexeev 2023-02-07 10:34:16 +03:00
parent cd0f1e9b10
commit 54770ba9c5
No known key found for this signature in database
GPG Key ID: 124453E157DA8DC7
1 changed files with 2 additions and 2 deletions

View File

@ -1536,9 +1536,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)));
}
}
}