Changeset 30676 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jul 6, 2010 4:36:43 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r30670 r30676 324 324 /* If we got a VBOX_E_IPRT error we handle the error in a more gentle way 325 325 * because it contains more accurate info about what went wrong. */ 326 ErrorInfo info(guest , COM_IIDOF(IGuest));326 ErrorInfo info(guest); 327 327 if (info.isFullAvailable()) 328 328 { 329 329 if (rc == VBOX_E_IPRT_ERROR) 330 { 330 331 RTPrintf("%ls.\n", info.getText().raw()); 332 } 331 333 else 334 { 332 335 RTPrintf("ERROR: %ls (%Rhrc).\n", info.getText().raw(), info.getResultCode()); 336 } 333 337 } 334 338 break; … … 394 398 /* If we got a VBOX_E_IPRT error we handle the error in a more gentle way 395 399 * because it contains more accurate info about what went wrong. */ 396 ErrorInfo info(guest , COM_IIDOF(IGuest));400 ErrorInfo info(guest); 397 401 if (info.isFullAvailable()) 398 402 { … … 489 493 ComPtr<IVirtualBoxErrorInfo> execError; 490 494 rc = progress->COMGETTER(ErrorInfo)(execError.asOutParam()); 491 com::ErrorInfo info (execError, COM_IIDOF(IVirtualBoxErrorInfo));495 com::ErrorInfo info (execError); 492 496 if (SUCCEEDED(rc) && info.isFullAvailable()) 493 497 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r30670 r30676 267 267 RTPrintf("Interpreting %ls...\n", path.raw()); 268 268 rc = pAppliance->Interpret(); 269 com::ErrorInfo info0(pAppliance , COM_IIDOF(IAppliance));269 com::ErrorInfo info0(pAppliance); 270 270 271 271 com::SafeArray<BSTR> aWarnings; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r30670 r30676 170 170 rc = machine->COMGETTER(AccessError)(accessError.asOutParam()); 171 171 RTPrintf("Access error details:\n"); 172 ErrorInfo ei(accessError , COM_IIDOF(IVirtualBoxErrorInfo));172 ErrorInfo ei(accessError); 173 173 GluePrintErrorInfo(ei); 174 174 RTPrintf("\n"); … … 1291 1291 if (FAILED(rc)) 1292 1292 { 1293 com::ErrorInfo info (display, COM_IIDOF(IDisplay));1293 com::ErrorInfo info (display); 1294 1294 GluePrintErrorInfo(info); 1295 1295 return rc; … … 1356 1356 if (FAILED(rc)) 1357 1357 { 1358 com::ErrorInfo info (remoteDisplayInfo, COM_IIDOF(IRemoteDisplayInfo));1358 com::ErrorInfo info (remoteDisplayInfo); 1359 1359 GluePrintErrorInfo(info); 1360 1360 return rc; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r30670 r30676 387 387 if (FAILED(iRc)) 388 388 { 389 ComPtr <IVirtualBoxErrorInfo> errorInfo;389 ComPtr <IVirtualBoxErrorInfo> errorInfo; 390 390 CHECK_ERROR_RET(progress, COMGETTER(ErrorInfo)(errorInfo.asOutParam()), 1); 391 ErrorInfo info (errorInfo, COM_IIDOF(IVirtualBoxErrorInfo));391 ErrorInfo info (errorInfo); 392 392 com::GluePrintErrorInfo(info); 393 393 }
Note:
See TracChangeset
for help on using the changeset viewer.