]> Shamusworld >> Repos - rmac/commitdiff
Small fix that should have gone into the last commit. :-P
authorShamus Hammons <jlhamm@acm.org>
Wed, 9 Jun 2021 01:48:19 +0000 (20:48 -0500)
committerShamus Hammons <jlhamm@acm.org>
Wed, 9 Jun 2021 01:48:19 +0000 (20:48 -0500)
error.c

diff --git a/error.c b/error.c
index 1452e98f8a3ac8339f84a38bbcf43b4ad93942fe..6945fc458e408afd476e6e4e3a6d307e28a98805 100644 (file)
--- a/error.c
+++ b/error.c
@@ -127,7 +127,8 @@ int error(const char * text, ...)
 
                        filename = fr->frec_name;
 
-                       sprintf(buf1, "%s %d: Error: %s\n", filename, cur_inobj->inobj.imacro->im_macro->lineList->lineno, buf);
+                       sprintf(buf1, "%s %d: Error: %s\nCalled from: %s %d\n", filename, cur_inobj->inobj.imacro->im_macro->lineList->lineno, buf,
+                       curfname, curlineno);
                }
                        break;
                case SRC_IREPT: