Substitution for illegal variable error message

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.

              thanks,
              Noam

​would something like this change help?

diff --git a/src/error.cpp b/src/error.cpp
index 0969507fc..9193314fc 100644
--- a/src/error.cpp
+++ b/src/error.cpp
@@ -152,9 +152,17 @@ void Error::all(const char *file, int line, const char
*str)
void Error::one(const char *file, int line, const char *str)
{
   int me;
+ const char *lastcmd = (const char*)"(unknown)";
   MPI_Comm_rank(world,&me);
- if (screen) fprintf(screen,"ERROR on proc %d: %s (%s:%d)\n",
- me,str,file,line);

Yes, I think that would be great.

thanks,
Noam