Made error message specific such that whena variable is refercned that EXISTS but has not yet been declared and we can tell the clear difference between that and an entity completely not existing in the program (regardless of declaration order)

This commit is contained in:
Tristan B. Kildaire 2021-08-12 15:18:52 +02:00
parent 4d03416383
commit 51b62fe89f
1 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ public class DNodeGenerator
}
else
{
Parser.expect("Cannot reference variable "~nearestName~" as it has not yet been declared");
Parser.expect("Cannot reference variable "~nearestName~" which exists but has not been declared yet");
}
@ -469,7 +469,7 @@ public class DNodeGenerator
}
else
{
Parser.expect("No entity by the name "~nearestName~" exists");
Parser.expect("No entity by the name "~nearestName~" exists (at all)");
}