Browse Source

Mention offending function name in "Indented block expected" error

(cherry picked from commit e6e5ba32cdcd27ba90893dbcc1035d556adf304b)
Steven Schoen 5 years ago
parent
commit
40125c7cce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_parser.cpp

+ 1 - 1
modules/gdscript/gdscript_parser.cpp

@@ -4017,7 +4017,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
 
 
 				if (!_enter_indent_block(block)) {
 				if (!_enter_indent_block(block)) {
 
 
-					_set_error("Indented block expected.");
+					_set_error(vformat("Indented block expected after declaration of \"%s\" function.", function->name));
 					return;
 					return;
 				}
 				}