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