throw error instead of logging