SWITCHYARD-1896 add proper error handling around version discovery