Throw error instead of returning it