Better error reporting for discovery errors