From 144f1c6fc6cb81aa24ad65907ea63edea6944de5 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 21 Sep 2025 11:55:39 +0200 Subject: [PATCH] Improve the error message by naming the port --- src/xspice/mif/mif_inp2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xspice/mif/mif_inp2.c b/src/xspice/mif/mif_inp2.c index 34aba5825..f6b170894 100644 --- a/src/xspice/mif/mif_inp2.c +++ b/src/xspice/mif/mif_inp2.c @@ -769,7 +769,9 @@ MIFget_port_type( } if(! found_type) { - LITERR("Port type is invalid"); + char mesg[32]; + snprintf(mesg, 31, "Port type %s is invalid", temp); + LITERR(mesg); *status = MIF_ERROR; } else {