Change error messages to warning messages, because simulator moves on

and command is ignored.
Make messages more verbose (which command?).
This commit is contained in:
Holger Vogt
2022-10-08 16:44:30 +02:00
parent 1bcbe8e6d8
commit 3af627db44
3 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ com_removecirc(wordlist *wl)
NG_IGNORE(wl);
if (!ft_curckt) {
fprintf(cp_err, "Error: there is no circuit loaded.\n");
fprintf(cp_err, "Warning: there is no circuit loaded.\n");
fprintf(cp_err, " Command 'remcirc' is ignored.\n");
return;
}
+4 -2
View File
@@ -174,7 +174,8 @@ com_rset(wordlist *wl)
NG_IGNORE(wl);
if (ft_curckt == NULL) {
fprintf(cp_err, "Error: there is no circuit loaded.\n");
fprintf(cp_err, "Warning: there is no circuit loaded.\n");
fprintf(cp_err, " Command 'reset' is ignored.\n");
return;
}
com_remcirc(NULL);
@@ -193,7 +194,8 @@ com_remcirc(wordlist *wl)
NG_IGNORE(wl);
if (ft_curckt == NULL) {
fprintf(cp_err, "Error: there is no circuit loaded.\n");
fprintf(cp_err, "Warning: there is no circuit loaded.\n");
fprintf(cp_err, " Command 'remcirc' is ignored.\n");
return;
}
+5 -3
View File
@@ -1625,10 +1625,12 @@ void com_snsave(wordlist *wl)
TSKtask *task;
if (!ft_curckt) {
fprintf(cp_err, "Error: there is no circuit loaded.\n");
fprintf(cp_err, "Warning: there is no circuit loaded.\n");
fprintf(cp_err, " Command 'snsave' is ignored.\n");
return;
} else if (!ft_curckt->ci_ckt) { /* Set noparse? */
fprintf(cp_err, "Error: circuit not parsed.\n");
fprintf(cp_err, "Warning: circuit not parsed.\n");
fprintf(cp_err, " Command 'snsave' is ignored.\n");
return;
}
@@ -1647,7 +1649,7 @@ void com_snsave(wordlist *wl)
task = ft_curckt->ci_curTask;
if (task->jobs->JOBtype != 4) {
fprintf(cp_err, "Only saving of tran analysis is implemented\n");
fprintf(cp_err, "Warning: Only saving of tran analysis is implemented\n");
return;
}