Consulting strerror()/GetErrorStr() might not be a bad plan !  But, frankly, Log() something appropriate here and return, don't use goto, just to share Log()ging of error with some other code that fails for a quite different reason.