Better errors for referrals