From bb28578956f76c3289c8ed935e3944919713d2c9 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 6 Jan 2014 10:40:02 +0100 Subject: [PATCH] workaround, avoid batch termination when there are .model issues these were introduced by commit "inp.c, evtinit.c: improved error message suggested by Calin Andrian" and caused ngspice checks to fail unexpectedly --- src/frontend/inp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 39da40dcd..0ee0381ba 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -893,7 +893,6 @@ inp_dodeck( if (dd->li_error) { char *p, *q; - have_err = TRUE; #ifdef XSPICE /* add setting of ipc syntax error flag */ g_ipc.syntax_error = IPC_TRUE; @@ -906,11 +905,13 @@ inp_dodeck( if (p == dd->li_error) { if (strstr(dd->li_line, ".model")) - out_printf("Model issue on line %d : %.*s ...\n%s\n", + out_printf("Warning: Model issue on line %d : %.*s ...\n %s\n", dd->li_linenum_orig, 56, dd->li_line, dd->li_error); - else + else { out_printf("Error on line %d : %s\n %s\n", dd->li_linenum_orig, dd->li_line, dd->li_error); + have_err = TRUE; + } if (ft_stricterror) controlled_exit(EXIT_BAD); } else {