From a2dbedff4e8d8f3e1fac65cb26d107567b905a8c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 10 Apr 2025 23:51:34 +0200 Subject: [PATCH] Improved error message, not using internal 'circbyline' --- src/frontend/inpcom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c60a16d6c..dbe1faa9a 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -8988,7 +8988,10 @@ static void inp_check_syntax(struct card *deck) if (check_subs != 0) { fprintf(cp_err, "\nError: Mismatch of .subckt ... .ends statements!\n"); - fprintf(stderr, " in file %s\n", bugcard->linesource); + if (eq("circbyline", bugcard->linesource)) + fprintf(stderr, "in the netlist received from the calling program\n"); + else + fprintf(stderr, " in file %s\n", bugcard->linesource); fprintf(cp_err, " This will cause subsequent errors.\n\n"); if (ends > 0) fprintf(cp_err, "Check .ends in line number %d\n", ends);