Changeset 91516 in vbox for trunk/src/VBox
- Timestamp:
- Oct 1, 2021 2:20:07 PM (3 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r91503 r91516 417 417 GuestErrorInfo ge(GuestErrorInfo::Type_Directory, rcGuest, mData.mOpenInfo.mPath.c_str()); 418 418 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Closing guest directory failed: %s"), 419 419 GuestBase::getErrorAsString(ge).c_str()); 420 420 break; 421 421 } … … 460 460 GuestErrorInfo ge(GuestErrorInfo::Type_ToolLs, rcGuest, mData.mOpenInfo.mPath.c_str()); 461 461 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Reading guest directory failed: %s"), 462 462 GuestBase::getErrorAsString(ge).c_str()); 463 463 break; 464 464 } -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r91503 r91516 1391 1391 GuestErrorInfo ge(GuestErrorInfo::Type_File, rcGuest, mData.mOpenInfo.mFilename.c_str()); 1392 1392 return setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Closing guest file failed: %s"), 1393 1393 GuestBase::getErrorAsString(ge).c_str()); 1394 1394 } 1395 1395 return setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Closing guest file \"%s\" failed with %Rrc\n"), … … 1434 1434 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, mData.mOpenInfo.mFilename.c_str()); 1435 1435 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file information failed: %s"), 1436 1436 GuestBase::getErrorAsString(ge).c_str()); 1437 1437 } 1438 1438 else … … 1467 1467 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, mData.mOpenInfo.mFilename.c_str()); 1468 1468 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file size failed: %s"), 1469 1469 GuestBase::getErrorAsString(ge).c_str()); 1470 1470 } 1471 1471 else -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r91503 r91516 1788 1788 GuestErrorInfo ge(GuestErrorInfo::Type_Process, rcGuest, mData.mProcess.mExecutable.c_str()); 1789 1789 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Reading %RU32 bytes from guest process handle %RU32 failed: %s"), 1790 1790 aToRead, aHandle, GuestBase::getErrorAsString(ge).c_str()); 1791 1791 break; 1792 1792 } … … 1823 1823 GuestErrorInfo ge(GuestErrorInfo::Type_Process, rcGuest, mData.mProcess.mExecutable.c_str()); 1824 1824 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Terminating guest process failed: %s"), 1825 1825 GuestBase::getErrorAsString(ge).c_str()); 1826 1826 break; 1827 1827 } … … 1884 1884 GuestErrorInfo ge(GuestErrorInfo::Type_Process, rcGuest, mData.mProcess.mExecutable.c_str()); 1885 1885 hr = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Waiting for guest process (flags %#x) failed: %s"), 1886 1886 aWaitFor, GuestBase::getErrorAsString(ge).c_str()); 1887 1887 break; 1888 1888 } -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r91503 r91516 3066 3066 GuestErrorInfo ge(GuestErrorInfo::Type_Session, rcGuest, mData.mSession.mName.c_str()); 3067 3067 return setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Closing guest session failed: %s"), 3068 3068 GuestBase::getErrorAsString(ge).c_str()); 3069 3069 } 3070 3070 return setError(VBOX_E_IPRT_ERROR, tr("Closing guest session \"%s\" failed with %Rrc"), … … 3171 3171 GuestErrorInfo ge(GuestErrorInfo::Type_Process, rcGuest, (*itSource).c_str()); 3172 3172 return setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying type for guest source failed: %s"), 3173 3173 GuestBase::getErrorAsString(ge).c_str()); 3174 3174 } 3175 else 3176 return setError(E_FAIL, tr("Querying type for guest source \"%s\" failed: %Rrc"), (*itSource).c_str(), vrc); 3175 return setError(E_FAIL, tr("Querying type for guest source \"%s\" failed: %Rrc"), (*itSource).c_str(), vrc); 3177 3176 } 3178 3177 … … 3397 3396 GuestErrorInfo ge(GuestErrorInfo::Type_Directory, rcGuest, aPath.c_str()); 3398 3397 return setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Guest directory creation failed: %s"), 3399 GuestBase::getErrorAsString(ge).c_str()); 3400 } 3401 else 3402 { 3403 switch (vrc) 3404 { 3405 case VERR_INVALID_PARAMETER: 3406 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: Invalid parameters given")); 3407 break; 3408 3409 case VERR_BROKEN_PIPE: 3410 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: Unexpectedly aborted")); 3411 break; 3412 3413 default: 3414 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: %Rrc"), vrc); 3415 break; 3416 } 3398 GuestBase::getErrorAsString(ge).c_str()); 3399 } 3400 switch (vrc) 3401 { 3402 case VERR_INVALID_PARAMETER: 3403 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: Invalid parameters given")); 3404 break; 3405 3406 case VERR_BROKEN_PIPE: 3407 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: Unexpectedly aborted")); 3408 break; 3409 3410 default: 3411 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Guest directory creation failed: %Rrc"), vrc); 3412 break; 3417 3413 } 3418 3414 } … … 3447 3443 GuestErrorInfo ge(GuestErrorInfo::Type_ToolMkTemp, rcGuest, aPath.c_str()); 3448 3444 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Temporary guest directory creation failed: %s"), 3449 3445 GuestBase::getErrorAsString(ge).c_str()); 3450 3446 break; 3451 3447 } … … 3492 3488 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, aPath.c_str()); 3493 3489 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying directory existence failed: %s"), 3494 3490 GuestBase::getErrorAsString(ge).c_str()); 3495 3491 break; 3496 3492 } … … 3564 3560 GuestErrorInfo ge(GuestErrorInfo::Type_Directory, rcGuest, aPath.c_str()); 3565 3561 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Opening guest directory failed: %s"), 3566 3562 GuestBase::getErrorAsString(ge).c_str()); 3567 3563 break; 3568 3564 } … … 3605 3601 GuestErrorInfo ge(GuestErrorInfo::Type_Directory, rcGuest, aPath.c_str()); 3606 3602 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Removing guest directory failed: %s"), 3607 3603 GuestBase::getErrorAsString(ge).c_str()); 3608 3604 break; 3609 3605 } … … 3687 3683 GuestErrorInfo ge(GuestErrorInfo::Type_Directory, rcGuest, aPath.c_str()); 3688 3684 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Recursively removing guest directory failed: %s"), 3689 3685 GuestBase::getErrorAsString(ge).c_str()); 3690 3686 break; 3691 3687 } … … 3834 3830 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, aPath.c_str()); 3835 3831 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file existence failed: %s"), 3836 3832 GuestBase::getErrorAsString(ge).c_str()); 3837 3833 break; 3838 3834 } … … 3955 3951 GuestErrorInfo ge(GuestErrorInfo::Type_File, rcGuest, aPath.c_str()); 3956 3952 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Opening guest file failed: %s"), 3957 3953 GuestBase::getErrorAsString(ge).c_str()); 3958 3954 break; 3959 3955 } … … 3988 3984 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, aPath.c_str()); 3989 3985 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file size failed: %s"), 3990 3986 GuestBase::getErrorAsString(ge).c_str()); 3991 3987 } 3992 3988 else … … 4033 4029 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, aPath.c_str()); 4034 4030 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file existence information failed: %s"), 4035 4031 GuestBase::getErrorAsString(ge).c_str()); 4036 4032 } 4037 4033 } … … 4075 4071 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, rcGuest, aPath.c_str()); 4076 4072 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Querying guest file information failed: %s"), 4077 4073 GuestBase::getErrorAsString(ge).c_str()); 4078 4074 } 4079 4075 else … … 4103 4099 GuestErrorInfo ge(GuestErrorInfo::Type_ToolRm, rcGuest, aPath.c_str()); 4104 4100 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Removing guest file failed: %s"), 4105 4101 GuestBase::getErrorAsString(ge).c_str()); 4106 4102 } 4107 4103 else … … 4165 4161 GuestErrorInfo ge(GuestErrorInfo::Type_Process, rcGuest, aSource.c_str()); 4166 4162 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Renaming guest path failed: %s"), 4167 4163 GuestBase::getErrorAsString(ge).c_str()); 4168 4164 break; 4169 4165 } … … 4402 4398 GuestErrorInfo ge(GuestErrorInfo::Type_Session, rcGuest, mData.mSession.mName.c_str()); 4403 4399 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, rcGuest, tr("Waiting for guest process failed: %s"), 4404 4400 GuestBase::getErrorAsString(ge).c_str()); 4405 4401 break; 4406 4402 }
Note:
See TracChangeset
for help on using the changeset viewer.