Update to previous commit: corrected and enhanced warning messages
This commit is contained in:
parent
16fd8749cf
commit
1ce0066d3b
|
|
@ -353,7 +353,8 @@ com_stype(wordlist *wl)
|
|||
int typenum = ft_typenum_x(type);
|
||||
|
||||
if (typenum < 0) {
|
||||
fprintf(cp_err, "Error: no such type as '%s'\n", type);
|
||||
fprintf(cp_err, "Error: no such vector type as '%s'\n", type);
|
||||
fprintf(cp_err, " Command 'settype %s %s ...' is ignored\n\n", type, wl->wl_next->wl_word);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -361,13 +362,13 @@ com_stype(wordlist *wl)
|
|||
const char* vecname = wl->wl_word;
|
||||
if (*vecname == '@'&& !ft_curckt->ci_curTask->jobs) {
|
||||
fprintf(cp_err, "Warning: Vector %s is available only after the simulation has been run!\n", vecname);
|
||||
fprintf(cp_err, " Command 'settype %s' is ignored\n\n", vecname);
|
||||
fprintf(cp_err, " Command 'settype %s %s' is ignored\n\n", type, vecname);
|
||||
continue;
|
||||
}
|
||||
struct dvec *v = vec_get(vecname);
|
||||
if (!v) {
|
||||
fprintf(cp_err, "Warning: no such vector %s.\n", vecname);
|
||||
fprintf(cp_err, " Command 'settype %s' is ignored\n\n", vecname);
|
||||
fprintf(cp_err, " Command 'settype %s %s' is ignored\n\n", type, vecname);
|
||||
}
|
||||
else
|
||||
for (; v; v = v->v_link2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue