if inp_spsource() returns with an error code, emit a message
This commit is contained in:
parent
5c7cf493a3
commit
8b8f7ab5b9
|
|
@ -1306,7 +1306,9 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (tempfile && (!err || !ft_batchmode)) {
|
if (tempfile && (!err || !ft_batchmode)) {
|
||||||
/* Copy the input file name for becoming another file search path */
|
/* 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);
|
tfree(dname);
|
||||||
gotone = TRUE;
|
gotone = TRUE;
|
||||||
}
|
}
|
||||||
|
|
@ -1318,7 +1320,9 @@ int main(int argc, char **argv)
|
||||||
} /* --- if (!ft_servermode) --- */
|
} /* --- if (!ft_servermode) --- */
|
||||||
|
|
||||||
if (!gotone && ft_batchmode) {
|
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…
Reference in New Issue