More informative exceptions when discovery fails