Code

Fixed error handling, when display_errors is set to flase