enhance error message when version capture failed. Credits goes to Dabian Snovna