From c723e124d9709815e45c1ea94a7f11bd3aeed8f8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 13 May 2023 23:43:44 +0200 Subject: [PATCH] Make error message more verbose and useful --- src/frontend/numparam/xpressn.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index a8ac9b6f5..7df535340 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1611,8 +1611,12 @@ nupa_subcktcall(dico_t *dico, const char *s, const char *x, jp = getexpress(dico, NULL, &ustr, jp); } else { jp++; - if ((unsigned char) (*kp) > ' ') - message(dico, "Subckt call, symbol %c not understood\n", *kp); + if ((unsigned char)(*kp) > ' ') { + fprintf(stderr, "Error in line: %s\n", x); + fprintf(stderr, " near %s\n", kp); + message(dico, "Subckt call, symbol %c not understood\n\n", *kp); + + } } /* Substitute the parameter for one of the '$' characters