Best answer

How do you add a custom message to the Connection Authentication Error dialog?

  • 24 February 2020
  • 1 reply
  • 466 views

Userlevel 1

The error message below is fairly friendly. However, we'd like to (if possible), add our own message below the red and above the numbered bullets (or elsewhere) to say:

...

Your API Key or Account Number were incorrect. Here's how to find the credentials you need https://help.teamworkiq.com/en/articles/3625469

...

image.png


icon

Best answer by ikbelkirasan 24 February 2020, 15:54

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +12

If this is a CLI app, just throw an error if the authentication fails.

throw new Error("Your API Key or Account Number were incorrect. Here's how to find the credentials you need https://help.teamworkiq.com/en/articles/3625469")