Improve error message

This commit is contained in:
Holger Vogt 2020-05-02 14:59:31 +02:00
parent 9b67992fe8
commit 3a00520071
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ checkvalid(struct pnode *pn)
pn->pn_value->v_name);
else
fprintf(cp_err,
"Error(parse.c--checkvalid): %s: no such vector.\n",
"Error(parse.c--checkvalid): %s: zero length vector.\n",
pn->pn_value->v_name);
return (FALSE);
}

View File

@ -777,7 +777,7 @@ bool plotit(wordlist *wl, const char *hcopy, const char *devname)
/* Now check for 0-length vectors. */
for (d = vecs; d; d = d->v_link2) {
if (!d->v_length) {
fprintf(cp_err, "Error(plotit.c--plotit): %s: no such vector\n",
fprintf(cp_err, "Error(plotit.c--plotit): %s: zero length vector\n",
d->v_name);
goto quit;
}