VirtualBox

Changeset 28949 in vbox for trunk


Ignore:
Timestamp:
Apr 30, 2010 10:11:17 PM (15 years ago)
Author:
vboxsync
Message:

MachineImpl.cpp: More details when a spawned VM process croaks.

File:
1 edited

Legend:

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

    r28851 r28949  
    58715871
    58725872    if (vrc != VERR_PROCESS_RUNNING)
    5873         rc = setError(E_FAIL,
    5874                       tr("Virtual machine '%ls' has terminated unexpectedly during startup"),
    5875                       getName().raw());
     5873    {
     5874        if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_NORMAL)
     5875            rc = setError(E_FAIL,
     5876                          tr("Virtual machine '%ls' has terminated unexpectedly during startup with exit code %d"),
     5877                          getName().raw(), status.iStatus);
     5878        else if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_SIGNAL)
     5879            rc = setError(E_FAIL,
     5880                          tr("Virtual machine '%ls' has terminated unexpectedly during startup because of signal %d"),
     5881                          getName().raw(), status.iStatus);
     5882        else if (RT_SUCCESS(vrc) && status.enmReason == RTPROCEXITREASON_ABEND)
     5883            rc = setError(E_FAIL,
     5884                          tr("Virtual machine '%ls' has terminated abnormally"),
     5885                          getName().raw(), status.iStatus);
     5886        else
     5887            rc = setError(E_FAIL,
     5888                          tr("Virtual machine '%ls' has terminated unexpectedly during startup (%Rrc)"),
     5889                          getName().raw(), rc);
     5890    }
     5891
    58765892#endif
    58775893
Note: See TracChangeset for help on using the changeset viewer.

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