Skip to content

Commit 29fd4d8

Browse files
improve end keyword error
1 parent 7f6f776 commit 29fd4d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Code/ContextSystem/Contexter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ List<Context> contexts
6161
case EndKeyword:
6262
{
6363
if (statementStack.Count == 0)
64-
return rs + "There is no statement to close with the 'end' keyword!";
64+
return rs + "There is no valid statement to close with the 'end' keyword! Check if the statement you are trying to close hasn't thrown an error when compiling.".AsError();
6565

6666
statementStack.Pop();
6767
return true;

0 commit comments

Comments
 (0)