VirtualBox

Changeset 49453 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 12, 2013 1:24:14 PM (11 years ago)
Author:
vboxsync
Message:

Main/SessionImpl.cpp: Refined assertion for Session::Uninitialize().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r48431 r49453  
    529529        }
    530530
    531 #ifndef DEBUG_andy /* Don't bug me -- now time to fix this at the moment. */
    532         AssertReturn(mState == SessionState_Locked ||
    533                      mState == SessionState_Spawning, VBOX_E_INVALID_VM_STATE);
    534 #endif
     531        AssertMsgReturn(   mState == SessionState_Locked
     532                        || mState == SessionState_Spawning,
     533                        ("Session is in wrong state (%ld), expected locked (%ld) or spawning (%ld)\n",
     534                         mState, SessionState_Locked, SessionState_Spawning),
     535                        VBOX_E_INVALID_VM_STATE);
    535536
    536537        /* close ourselves */
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