mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 23:22:38 +00:00
Moving 'Expected indented block' error message lines numbers back
This commit is contained in:
parent
a0d7649192
commit
d168dada36
@ -165,7 +165,7 @@ void GDScriptParser::push_error(const String &p_message, const Node *p_origin) {
|
||||
panic_mode = true;
|
||||
// TODO: Improve positional information.
|
||||
if (p_origin == nullptr) {
|
||||
errors.push_back({ p_message, current.start_line, current.start_column });
|
||||
errors.push_back({ p_message, previous.start_line, previous.start_column });
|
||||
} else {
|
||||
errors.push_back({ p_message, p_origin->start_line, p_origin->leftmost_column });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user