VirtualBox

Changeset 501 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Feb 1, 2007 12:49:45 PM (18 years ago)
Author:
vboxsync
Message:

FE/SDL: Printf to stderr on runtime error as long as we don't have a better mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r470 r501  
    476476    }
    477477
    478     STDMETHOD(OnRuntimeError)(BOOL fatal, INPTR BSTR id, INPTR BSTR message)
    479     {
     478    STDMETHOD(OnRuntimeError)(BOOL fFatal, INPTR BSTR id, INPTR BSTR message)
     479    {
     480        MachineState_T machineState;
     481        gMachine->COMGETTER(State)(&machineState);
     482        const char *pszType;
     483        bool fPaused = machineState == MachineState_Paused;
     484        if (fFatal)
     485            pszType = "FATAL ERROR";
     486        else if (machineState == MachineState_Paused)
     487            pszType = "Non-fatal ERROR";
     488        else
     489            pszType = "WARNING";
     490        RTStrmPrintf(g_pStdErr, "\n%s: ** %lS **\n%lS\n%s\n", pszType, id, message,
     491                     fPaused ? "The VM was paused. Continue with HostKey + P after you solved the problem.\n" : "");
    480492        return S_OK;
    481493    }
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