reference to undefined variable was referred to as an internal error

This commit is contained in:
Francesco Cozzuto
2022-03-07 19:26:15 +01:00
parent c48e032840
commit 3c2c68dfe5
+1 -1
View File
@@ -914,7 +914,7 @@ static _Bool step(Runtime *runtime, Error *error)
{ {
if(error->occurred == 0) if(error->occurred == 0)
// There's no such variable. // There's no such variable.
Error_Report(error, 1, "Reference to undefined variable \"%s\"", ops[0].as_string); Error_Report(error, 0, "Reference to undefined variable \"%s\"", ops[0].as_string);
return 0; return 0;
} }