From 1ce0066d3b9bc9db05e1e0c0caa62bfcb9715602 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 27 Nov 2021 23:06:15 +0100 Subject: [PATCH] Update to previous commit: corrected and enhanced warning messages --- src/frontend/typesdef.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/typesdef.c b/src/frontend/typesdef.c index 2fe67e02c..c89fb1e71 100644 --- a/src/frontend/typesdef.c +++ b/src/frontend/typesdef.c @@ -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)