VirtualBox

Changeset 2534 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 8, 2007 11:20:07 AM (18 years ago)
Author:
vboxsync
Message:

Provide error message (only for the release log, as the IDE device
issues another error message).

File:
1 edited

Legend:

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

    r1795 r2534  
    284284     */
    285285    if (!CFGMR3AreValuesValid(pCfgHandle, "Path\0ReadOnly\0"))
    286         return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    287 
     286        return PDMDrvHlpVMSetError(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, RT_SRC_POS, N_("RawHDD#%d: configuration keys other than \"Path\" and \"ReadOnly\" present"));
    288287
    289288    /*
     
    292291    rc = CFGMR3QueryStringAlloc(pCfgHandle, "Path", &pThis->pszPath);
    293292    if (VBOX_FAILURE(rc))
    294         return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("RawHDD#%d: configuration query for \"Path\" string returned %Vra.\n"), rc);
     293        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("RawHDD#%d: configuration query for \"Path\" string returned %Vra"), rc);
    295294
    296295    rc = CFGMR3QueryBool(pCfgHandle, "ReadOnly", &pThis->fReadOnly);
     
    301300    }
    302301    else if (VBOX_FAILURE(rc))
    303         return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("RawHDD#%d: configuration query for \"ReadOnly\" boolean returned %Vra.\n"), rc);
     302        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("RawHDD#%d: configuration query for \"ReadOnly\" boolean returned %Vra"), rc);
    304303
    305304    pDrvIns->IBase.pfnQueryInterface = drvHostHDDQueryInterface;
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