# How to get proper error messages in Lock widget?

**URL:** <https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636>\
**Category:** Get Help\
**Tags:** lock-10, tier1, error\
**Created:** [July 24, 2017, 5:37pm UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636 "2017-07-24T17:37:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![admin21](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@admin21](https://community.auth0.com/u/admin21)\
**Post date:** [July 24, 2017, 5:37pm UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636/1 "2017-07-24T17:37:41Z")

</div>

For some reason, we are only able to see generic error messages on unsuccessful sign in attempt. Instead of something like “Invalid email or password”, the widget always shows “WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO LOG IN.”, even though the response in DevTools shows a proper message.

Please, see [this gif](https://www.dropbox.com/s/9xb25jqt2qk5qwm/auth0-errors.gif?dl=0) to see exactly what I mean.

The code to initialise the widget, auth0-lock package version is 10.19.0:

```
this.lock = new Auth0Lock(clientId, domain, {
      oidcConformant: true,
      closable: false,
      auth: {
        params: {
          scope: 'openid email',
        }
      }
    });

```

---

<div class="post-metadata">

**Author:** ![isa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/isa/32/3212_2.png) [@isa](https://community.auth0.com/u/isa)\
**Post date:** [July 25, 2017, 4:49am UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636/2 "2017-07-25T04:49:14Z")

</div>

Good question… I’m using the Angular 2 Lock module and am running into the same problem. The whole point of using Lock was to get these sorts of error messages and standard UI prompts taken care of. Don’t tell me I have to implement this myself.

---

<div class="post-metadata">

**Author:** ![swapna.dixit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@swapna.dixit](https://community.auth0.com/u/swapna.dixit)\
**Post date:** [July 25, 2017, 8:03pm UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636/3 "2017-07-25T20:03:01Z")

</div>

You can customize the error messages that will be displayed in certain situations in Lock by providing a Language Dictionary option. Link below for more information on the same:  
[https://auth0.com/docs/libraries/lock/v10/customizing-error-messages](https://auth0.com/docs/libraries/lock/v10/customizing-error-messages)

---

<div class="post-metadata">

**Author:** ![isa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/isa/32/3212_2.png) [@isa](https://community.auth0.com/u/isa)\
**Post date:** [July 26, 2017, 1:40am UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636/4 "2017-07-26T01:40:04Z")

</div>

But the problem is that the lock widget ALWAYS shows the same message, no matter the error: “WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO LOG IN”. Customizing the error message type doesn’t work.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/how-to-get-proper-error-messages-in-lock-widget/7636/5 "2018-03-02T05:55:34Z")

</div>


