From 3a00520071dbcade290f8f693e984d5c1ddf3e46 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 2 May 2020 14:59:31 +0200 Subject: [PATCH] Improve error message --- src/frontend/parse.c | 2 +- src/frontend/plotting/plotit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/parse.c b/src/frontend/parse.c index a41d61202..d7bdecdbf 100644 --- a/src/frontend/parse.c +++ b/src/frontend/parse.c @@ -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); } diff --git a/src/frontend/plotting/plotit.c b/src/frontend/plotting/plotit.c index b530f2fc6..57e284e85 100644 --- a/src/frontend/plotting/plotit.c +++ b/src/frontend/plotting/plotit.c @@ -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; }