[sysrepo-devel] Verification error results
Joan Landry
JoLandry at advaoptical.com
Mon Oct 24 11:47:06 UTC 2016
Thanks!!!
From: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) [mailto:raszabo at cisco.com]
Sent: Monday, October 24, 2016 7:46 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: RE: Verification error results
Hi,
Have a look at sr_set_error:
https://github.com/sysrepo/sysrepo/blob/master/inc/sysrepo.h#L525-L539
Rastislav
From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On Behalf Of Joan Landry
Sent: Monday, October 24, 2016 1:43 PM
To: sysrepo-devel at sysrepo.org<mailto:sysrepo-devel at sysrepo.org>
Subject: [sysrepo-devel] Verification error results
I would like to know how to supply the error text to the result when I respond with a SR_ERR_VALIDATION_FAILED;
Currently the only text that the user sees is that a failure occurred via the edit-config but there is no descriptive information about why it failed.
I looked for a method or way to feed this info back to sysrepo but was not able to find it.
Any ideas on how to accomplish this?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20161024/13417638/attachment.html>
More information about the sysrepo-devel
mailing list