Throw error before attempting result transformtion.