# Initiate an error popup

**URL:** <https://community.auth0.com/t/initiate-an-error-popup/75205>\
**Category:** Get Help\
**Created:** [December 20, 2021, 7:29am UTC](https://community.auth0.com/t/initiate-an-error-popup/75205 "2021-12-20T07:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitzan.mazor](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nitzan.mazor/32/13374_2.png) [@nitzan.mazor](https://community.auth0.com/u/nitzan.mazor)\
**Post date:** [December 20, 2021, 7:29am UTC](https://community.auth0.com/t/initiate-an-error-popup/75205/1 "2021-12-20T07:29:59Z")

</div>

Hi,  
we’re using auth-lock 11.24.0  
we are implementing passwordless login.

Is there a way for us to initiate an error popup in special cases that we find it necessary?  
(for example, when user chooses country prefix that is different than +1)

I saw ‘Error Handling’ section here: [GitHub - auth0/lock: Auth0’s signin solution](https://github.com/auth0/lock#customization)  
not sure if relevant, and if so, how to use it.

will appreciate any input

thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 20, 2021, 10:03pm UTC](https://community.auth0.com/t/initiate-an-error-popup/75205/3 "2021-12-20T22:03:47Z")

</div>

Hi @nitzan.mazor,

Thanks for reaching out to the Auth0 Community!

> [@nitzan.mazor](#):
>
> Is there a way for us to initiate an error popup in special cases that we find it necessary?

Unfortunately, there isn’t a way for the Universal Login to display an error popup. Generally, user access can be managed with an Auth0 [Rule](https://auth0.com/docs/rules) or [Action](https://auth0.com/docs/actions).

If there is a specific error you would like to customize, you could change the [Language Dictionary Object](https://auth0.com/docs/libraries/lock/lock-configuration#languagedictionary-object-) in your Custom Universal Login Page.

The relevant Passwordless error messages you can customize are the following:

```auto
languageDictionary: {
  error:{
    passwordless: {
      'bad.email': 'The email is invalid',
      'bad.phone_number': 'The phone number is invalid',
      'lock.fallback': "We're sorry, something went wrong"
    }
  }
}

```

Please don’t hesitate to reach out if you have any other questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 4, 2022, 10:04pm UTC](https://community.auth0.com/t/initiate-an-error-popup/75205/4 "2022-01-04T22:04:24Z")

</div>

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