# How to print error info on standard output for actions?

**URL:** <https://dmap-community.ductus.global/t/how-to-print-error-info-on-standard-output-for-actions/2957>\
**Category:** NETCONF\
**Created:** [March 4, 2020, 5:21am UTC](https://dmap-community.ductus.global/t/how-to-print-error-info-on-standard-output-for-actions/2957 "2020-03-04T05:21:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpauly](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mpauly](https://dmap-community.ductus.global/u/mpauly)\
**Post date:** [March 4, 2020, 5:21am UTC](https://dmap-community.ductus.global/t/how-to-print-error-info-on-standard-output-for-actions/2957/1 "2020-03-04T05:21:26Z")

</div>

Tried `confd_action_seterr`(uinfo,“b should not be equal to c”); but it is not working.  
For the action execution we are not having input or o/p.

The call is like :

TRACE CALL action(usid=27,action1,/A/B{b}/C{c}/actions) --\> CONFD\_OK

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [March 4, 2020, 8:43am UTC](https://dmap-community.ductus.global/t/how-to-print-error-info-on-standard-output-for-actions/2957/2 "2020-03-04T08:43:17Z")

</div>

> [@mpauly](#):
>
> TRACE CALL action(usid=27,action1,/A/B{b}/C{c}/actions) → CONFD\_OK

You returned CONFD\_OK. You need to return CONFD\_ERR if you want the confd\_action\_seterr() string to have any effect. (as stated in the confd\_lib\_dp man page)
