Changed ca_errmsg callback to a more generic variant
Includes all error, log and debug messages See [Customized NETCONF error message](https://github.com/clicon/clixon/issues/454)
This commit is contained in:
parent
798a9fbfcb
commit
9e54f0602f
83 changed files with 739 additions and 616 deletions
|
|
@ -488,7 +488,9 @@ cli_handler_err(FILE *f)
|
|||
if (clixon_err_category()){
|
||||
/* Check if error is already logged on stderr */
|
||||
if ((clixon_get_logflags() & CLIXON_LOG_STDERR) == 0){
|
||||
fprintf(f, "%s: %s", clixon_err_str(), clixon_err_reason());
|
||||
if (clixon_err_category() != -1)
|
||||
fprintf(f, "%s: ", clixon_err_str());
|
||||
fprintf(f, "%s", clixon_err_reason());
|
||||
if (clixon_err_subnr())
|
||||
fprintf(f, ": %s", strerror(clixon_err_subnr()));
|
||||
fprintf(f, "\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue