# Showing error message in a dialog

**URL:** https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089
**Category:** Developing Nodes
**Created:** [3 January 2023 06:29 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089 "2023-01-03T06:29:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [3 January 2023 06:29 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/1 "2023-01-03T06:29:10Z")

</div>

I wanted to know is there any way to show error messages other than in the debug console.

For example in editor if the user authentication fails then is it possible to show a dialog showing the error instead in the debug console

I am trying to login a user and if it is successful I want to display a list of files otherwise I need a popup or a dialog which shows the authentication has failed.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 January 2023 09:06 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/2 "2023-01-03T09:06:57Z")

</div>

Your question is a bit unclear.

Are you developing a contrib node?

What kind of user is logging into what system?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [3 January 2023 09:27 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/3 "2023-01-03T09:27:13Z")

</div>

Hi @syedhannan

Assuming you mean within the editor, you can use:

```auto
RED.notify('A message here', { type: 'error' })

```

Docs here: [RED.notify : Node-RED](https://nodered.org/docs/api/ui/notifications/)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 January 2023 09:45 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/4 "2023-01-03T09:45:46Z")

</div>

If you mean in the node red dashboard then you can use a Notification node.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [3 January 2023 12:07 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/5 "2023-01-03T12:07:33Z")

</div>

An example

> <https://github.com/TotallyInformation/node-red-contrib-uibuilder/blob/v6.1.0/src/editor/uibuilder/editor.js#L2142>

---

<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: [4 March 2023 12:08 UTC](https://discourse.nodered.org/t/showing-error-message-in-a-dialog/73089/6 "2023-03-04T12:08:28Z")

</div>

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