VirtualBox

Changeset 52175 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 24, 2014 6:45:59 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95224
Message:

MachineImpl.cpp: Create the log directory before launching the VM; Hexadecimal exit code in error messages to make it easier to see which NT status code we're looking at.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r52171 r52175  
    73337333    {
    73347334        Utf8Str strStartupLogFile = i_getStartupLogFilename();
    7335         RTFileDelete(strStartupLogFile.c_str());
     7335        int vrc2 = RTFileDelete(strStartupLogFile.c_str());
     7336        if (vrc2 == VERR_PATH_NOT_FOUND || vrc2 == VERR_FILE_NOT_FOUND)
     7337        {
     7338            Utf8Str strStartupLogDir = strStartupLogFile;
     7339            strStartupLogDir.stripFilename();
     7340            RTDirCreateFullPath(strStartupLogDir.c_str(), 0755); /** @todo add a variant for creating the path to a file without stripping the file. */
     7341        }
    73367342        strSupStartLogArg.append(strStartupLogFile);
    73377343    }
     
    76557661        if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_NORMAL)
    76567662            rc = setError(E_FAIL,
    7657                           tr("The virtual machine '%s' has terminated unexpectedly during startup with exit code %d%s"),
    7658                           i_getName().c_str(), status.iStatus, strExtraInfo.c_str());
     7663                          tr("The virtual machine '%s' has terminated unexpectedly during startup with exit code %d (%#x)%s"),
     7664                          i_getName().c_str(), status.iStatus, status.iStatus, strExtraInfo.c_str());
    76597665        else if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_SIGNAL)
    76607666            rc = setError(E_FAIL,
     
    76637669        else if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_ABEND)
    76647670            rc = setError(E_FAIL,
    7665                           tr("The virtual machine '%s' has terminated abnormally"),
     7671                          tr("The virtual machine '%s' has terminated abnormally (iStatus=%#x)%s"),
    76667672                          i_getName().c_str(), status.iStatus, strExtraInfo.c_str());
    76677673        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette