Browse Source

if inp_spsource() returns with an error code, emit a message

pre-master-46
Holger Vogt 6 years ago
parent
commit
51f80abe00
  1. 8
      src/main.c

8
src/main.c

@ -1306,7 +1306,9 @@ int main(int argc, char **argv)
if (tempfile && (!err || !ft_batchmode)) {
/* Copy the input file name for becoming another file search path */
inp_spsource(tempfile, FALSE, dname, FALSE);
if (inp_spsource(tempfile, FALSE, dname, FALSE) != 0) {
fprintf(stderr, " Simulation interrupted due to error!\n\n");
}
tfree(dname);
gotone = TRUE;
}
@ -1318,7 +1320,9 @@ int main(int argc, char **argv)
} /* --- if (!ft_servermode) --- */
if (!gotone && ft_batchmode) {
inp_spsource(circuit_file, FALSE, NULL, FALSE);
if (inp_spsource(circuit_file, FALSE, NULL, FALSE) != 0) {
fprintf(stderr, " Simulation interrupted due to error!\n\n");
}
}
}

Loading…
Cancel
Save