# The little red triangles on nodes indicating an error

**URL:** <https://discourse.nodered.org/t/the-little-red-triangles-on-nodes-indicating-an-error/20594>\
**Category:** General\
**Created:** [19 January 2020 20:05 UTC](https://discourse.nodered.org/t/the-little-red-triangles-on-nodes-indicating-an-error/20594 "2020-01-19T20:05:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 January 2020 20:05 UTC](https://discourse.nodered.org/t/the-little-red-triangles-on-nodes-indicating-an-error/20594/1 "2020-01-19T20:05:22Z")

</div>

I am (attempting to write some code in a `function` node.

All being good and no errors shown, I click the `ok` button.

I see an error triangle on the node.

Opening the node again, I still don't see any errors.

 ![Screenshot from 2020-01-20 06-57-37](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/0/80ccce8ae1f639f1866041b2f311e30527aadcbd.png)

![Screenshot from 2020-01-20 06-57-29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/5/c5dbce88b28fe1ad24776cc62b03a07c57b4498a.png)

Kinda makes it difficult to know where the error is.

Oh, P.S.  
I just worked out the error:  
code:  
`let array = []`

All the same, why wasn't the line marked when I open the editor?  
That is the real question.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [19 January 2020 20:15 UTC](https://discourse.nodered.org/t/the-little-red-triangles-on-nodes-indicating-an-error/20594/2 "2020-01-19T20:15:56Z")

</div>

Know idea why no error but couple of suggestions

I wouldn't call my variable array - I'd call it something like queueArray

(I wouldn't call any variable in any language something that looks like a type e.g wouldn't use int or integer or string etc as variable names)

and small syntax error  
`if (msg.topic == "CONTROL")`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 January 2020 20:18 UTC](https://discourse.nodered.org/t/the-little-red-triangles-on-nodes-indicating-an-error/20594/3 "2020-01-19T20:18:45Z")

</div>

Thanks.  
(For the `if (msg.topic` find.

Only kind of just got up 1 hour ago. Brain not 100% up to speed.

Yeah, I shall change the name of the "array".
