From a3e80080e267e8895999ab0535f3fee3c358e528 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 27 Aug 2020 13:15:16 +0200 Subject: [PATCH] added error-app-tag to netconf error textual message --- lib/src/clixon_netconf_lib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/clixon_netconf_lib.c b/lib/src/clixon_netconf_lib.c index c4cbb850..e23615dc 100644 --- a/lib/src/clixon_netconf_lib.c +++ b/lib/src/clixon_netconf_lib.c @@ -1379,6 +1379,8 @@ netconf_err2cb(cxobj *xerr, cprintf(cberr, "%s ", xml_body(x)); if ((x=xpath_first(xerr, NULL, "//error-info"))!=NULL) clicon_xml2cbuf(cberr, xml_child_i(x,0), 0, 0, -1); + if ((x=xpath_first(xerr, NULL, "//error-app-tag"))!=NULL) + cprintf(cberr, ": %s ", xml_body(x)); retval = 0; return retval; } @@ -1532,6 +1534,7 @@ clixon_netconf_error_fn(const char *fn, cprintf(cb, "%s", msg); if (arg) cprintf(cb, " \"%s\" ", arg); + cprintf(cb, ": "); } if (netconf_err2cb(xerr, cb) < 0)