added the mio_svc_marc_dev_error_t type

This commit is contained in:
2020-06-21 15:30:44 +00:00
parent 31d92b9292
commit dce9353bc8
3 changed files with 29 additions and 15 deletions

View File

@ -138,8 +138,11 @@ printf ("[%lu] NO DATA..\n", sid);
break;
case MIO_SVC_MARC_RCODE_ERROR:
printf ("QUERY ERROR - %s\n", data); /* TODO: how to get both error code and error message? */
{
mio_svc_marc_dev_error_t* err = (mio_svc_marc_dev_error_t*)data;
printf ("QUERY ERROR - [%d] %s\n", err->mar_errcode, err->mar_errmsg);
break;
}
}
}