From 40125c7cce10acd3fd6e7eddb70f906985ebccd9 Mon Sep 17 00:00:00 2001 From: Steven Schoen Date: Mon, 27 Apr 2020 16:54:12 -0700 Subject: [PATCH] Mention offending function name in "Indented block expected" error (cherry picked from commit e6e5ba32cdcd27ba90893dbcc1035d556adf304b) --- modules/gdscript/gdscript_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index f118d72abae..b7fdcf3a9df 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -4017,7 +4017,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) { if (!_enter_indent_block(block)) { - _set_error("Indented block expected."); + _set_error(vformat("Indented block expected after declaration of \"%s\" function.", function->name)); return; }