Changed checks in process_errors