Is there a chance that some information could be added to the “substitution for illegal variable” error message”? From what I’ve found it says nothing about what variable or what input line, which makes it somewhat harder to debug than it needs to be. Either of those would help.
would something like this change help?
diff --git a/src/error.cpp b/src/error.cpp
index 0969507fc..9193314fc 100644
@@ -152,9 +152,17 @@ void Error::all(const char *file, int line, const char
void Error::one(const char *file, int line, const char *str)
+ const char *lastcmd = (const char*)"(unknown)";
- if (screen) fprintf(screen,"ERROR on proc %d: %s (%s:%d)\n",
Yes, I think that would be great.