Currently, removing ErrorHandlerMiddleware from app enables displaying of exceptions with full traces even if DEBUG is set to false, error_reporting is set to 0 and display_errors is set to Off. Debug information of any kind must be hidden by default and middleware shouldn't expose it when not asked for.
Currently, removing ErrorHandlerMiddleware from app enables displaying of exceptions with full traces even if DEBUG is set to false, error_reporting is set to 0 and display_errors is set to Off. Debug information of any kind must be hidden by default and middleware shouldn't expose it when not asked for.