return error after logger.log error