Improved error message, not using internal 'circbyline'

This commit is contained in:
Holger Vogt
2025-05-24 11:25:55 +02:00
parent f1381b43a1
commit a2dbedff4e
+4 -1
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);