http://shoorick.ru/2018/11/13/error-messages-production/
Надо ругаться в боевом режиме