{"action":"opened","issue":{"url":"https://api.github.com/repos/dingo/api/issues/651","labels_url":"https://api.github.com/repos/dingo/api/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/651/comments","events_url":"https://api.github.com/repos/dingo/api/issues/651/events","html_url":"https://github.com/dingo/api/issues/651","id":107493032,"number":651,"title":"API returns error messages in DEBUG false","user":{"login":"cupit","id":3126540,"avatar_url":"https://avatars.githubusercontent.com/u/3126540?v=3","gravatar_id":"","url":"https://api.github.com/users/cupit","html_url":"https://github.com/cupit","followers_url":"https://api.github.com/users/cupit/followers","following_url":"https://api.github.com/users/cupit/following{/other_user}","gists_url":"https://api.github.com/users/cupit/gists{/gist_id}","starred_url":"https://api.github.com/users/cupit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cupit/subscriptions","organizations_url":"https://api.github.com/users/cupit/orgs","repos_url":"https://api.github.com/users/cupit/repos","events_url":"https://api.github.com/users/cupit/events{/privacy}","received_events_url":"https://api.github.com/users/cupit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T11:36:06Z","updated_at":"2015-09-21T11:36:06Z","closed_at":null,"body":"Hi,\r\n\r\nI think it should't return this kind of errors in production env, for example:\r\n\r\n{\r\n\"message\": \"SQLSTATE[HY000] [2003] Can't connect to MySQL server on '0.0.0.0' (113)\",\r\n\"status_code\": 500\r\n}\r\n\r\nAPP_DEBUG=false\r\nAPI_DEBUG=false\r\n\r\nis there any simple way to hide that message?"}}