<p>You are seeing this because you have <code>'devMode' =&gt; true,</code> in your <code>config/general</code> try switching to <code>false</code> and should hit a 'user friendly' message</p>

CC BY-SA 4.0
2019-05-27T12:59:54.280Z
thank you so much
dyanmic Dreamz
CC BY-SA 4.0
2019-05-27T13:00:51.383Z
but can you explain me what actually happening there
dyanmic Dreamz
CC BY-SA 4.0
2019-05-27T18:26:17.120Z
@dyanmicDreamz This should help: https://craftcms.com/guides/what-dev-mode-does
Brad Bell
CC BY-SA 4.0
2019-05-27T10:52:56.210Z
2019-05-27T10:52:56.210Z
Oli
<p>when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like <code>HTTP 403 – Forbidden – yii\web\ForbiddenHttpException</code>.</p>

<p>This error is correct but I want to display some message instead of this error.</p>

<craft3><login>
Show error when normal user try to login in CP
# Show error when normal user try to login in CP

(Asked by: username_0 on 2019-05-27)

when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like `HTTP 403 – Forbidden – yii\web\ForbiddenHttpException`.

This error is correct but I want to display some message instead of this error.

**Tags:** craft3, login

---

## 1 answers

### Answer by username_1 on 2019-05-27. Score: 1

You are seeing this because you have `'devMode' => true,` in your `config/general` try switching to `false` and should hit a 'user friendly' message

> **Comments:**
> **username_0**: thank you so much  
> **username_0**: but can you explain me what actually happening there  
> **username_2**: @dyanmicDreamz This should help: https://craftcms.com/guides/what-dev-mode-does  

---

