Handle runtime discovery errors appropriately depending on type