Throw error instead of (silently) logging it