Replace display_errors function into ErrorHandler