Improved error message, not using internal 'circbyline'

This commit is contained in:
Holger Vogt 2025-04-10 23:51:34 +02:00
parent 13bbe47020
commit 3bf94321e6
1 changed files with 4 additions and 1 deletions

View File

@ -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);