Add more error logging in tagversion