Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customized NETCONF error message #454

Closed
olofhagsand opened this issue Sep 11, 2023 · 1 comment
Closed

Customized NETCONF error message #454

olofhagsand opened this issue Sep 11, 2023 · 1 comment

Comments

@olofhagsand
Copy link
Member

Client errors, in particular CLI, are displayed using functions:
clixon_netconf_error_fn() / netconf_err2cb()
which translate NETCONF error messages into a more readable form. However, there is a need to make the
error messages more meaningful for an end-user by providing an ability to customize the error messages.
This could be done by some callback mechanism so that the original NETCONF error message could be annotated with application-specific information or context.

olofhagsand added a commit that referenced this issue Oct 26, 2023
* Added new callback `.ca_errmsg`
* Changed signature of `clicon_netconf_error()` and `netconf_err2cb()`
@olofhagsand
Copy link
Member Author

NETCONF error message customized.
However more error message customization may be needed and was not covered by this issue.

olofhagsand added a commit that referenced this issue Jan 5, 2024
Includes all error, log and debug messages
See [Customized NETCONF error message](#454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant