Throw error instead of logging.