Fixed customized errors: fcgi and snmp

This commit is contained in:
Olof hagsand 2023-10-26 15:32:25 +02:00
parent 5bdad1870e
commit 978586a493
3 changed files with 5 additions and 3 deletions

View file

@ -263,7 +263,7 @@ snmp_scalar_get(clicon_handle h,
goto done;
/* Detect error XXX Error handling could improve */
if ((xerr = xpath_first(xt, NULL, "/rpc-error")) != NULL){
clixon_netconf_error(xerr, "clicon_rpc_get", NULL);
clixon_netconf_error(h, xerr, "clicon_rpc_get", NULL);
goto done;
}
x = xpath_first(xt, nsc, "%s", xpath);