# Node.error only sends msg.payload

**URL:** <https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845>\
**Category:** General\
**Created:** [1 May 2020 03:17 UTC](https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845 "2020-05-01T03:17:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![svj](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@svj](https://discourse.nodered.org/u/svj)\
**Post date:** [1 May 2020 03:17 UTC](https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845/1 "2020-05-01T03:17:39Z")

</div>

Hi All,

I'm having issues getting the node.error function to return the complete message in the catch node.  
I'm using  
node.error("error test", msg);  
in a function node.  
The catch node only returns msg.payload.  
What am I doing wrong?

 ![screenshot_catch](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b796d66063b8ebcea09d297563ca941691804cb6.png)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [1 May 2020 04:56 UTC](https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845/2 "2020-05-01T04:56:45Z")

</div>

Is the debug node set to output 'complete msg object' ?

---

<div class="post-metadata">

**Author:** ![svj](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@svj](https://discourse.nodered.org/u/svj)\
**Post date:** [1 May 2020 05:09 UTC](https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845/4 "2020-05-01T05:09:44Z")

</div>

Thank you! I can't believe I missed that. That solves it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 May 2020 05:09 UTC](https://discourse.nodered.org/t/node-error-only-sends-msg-payload/25845/5 "2020-05-15T05:09:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
