VirtualBox

Changeset 11188 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Aug 6, 2008 5:47:33 PM (16 years ago)
Author:
vboxsync
Message:

DrvMediaISO: Report failures!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp

    r8155 r11188  
    129129    int rc = CFGMR3QueryStringAlloc(pCfgHandle, "Path", &pszName);
    130130    if (VBOX_FAILURE(rc))
    131     {
    132         AssertMsgFailed(("Configuration error: query for \"Path\" string return %Vra.\n", rc));
    133         return rc;
    134     }
     131        return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"Path\" from the config"));
    135132
    136133    /*
     
    146143    else
    147144    {
     145        PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("Failed to open ISO file \"%s\""), pszName);
    148146        AssertMsgFailed(("Could not open ISO file %s, rc=%Vrc\n", pszName, rc));
    149147        MMR3HeapFree(pszName);
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