Improve the error message by naming the port

This commit is contained in:
Holger Vogt 2025-09-21 11:55:39 +02:00
parent adcc1de2fb
commit 144f1c6fc6
1 changed files with 3 additions and 1 deletions

View File

@ -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 {