- Timestamp:
- Mar 12, 2018 4:25:30 PM (7 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r71299 r71302 216 216 switch (rcGuest) 217 217 { 218 case VERR_CANT_CREATE: 219 strError += Utf8StrFmt("Access denied"); 220 break; 221 218 222 case VERR_DIR_NOT_EMPTY: 219 strError += Utf8StrFmt(" Directoy is not empty");223 strError += Utf8StrFmt("Not empty"); 220 224 break; 221 225 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r71299 r71302 684 684 } 685 685 686 if (uMode) 686 if ( RT_SUCCESS(vrc) 687 && uMode) 687 688 { 688 689 procInfo.mArguments.push_back(Utf8Str("--mode")); /* Set the creation mode. */ … … 696 697 vrc = VERR_BUFFER_OVERFLOW; 697 698 } 698 procInfo.mArguments.push_back("--"); /* '--version' is a valid directory name. */ 699 700 procInfo.mArguments.push_back("--"); /* '--version' is a valid directory name. */ 699 701 procInfo.mArguments.push_back(strPath); /* The directory we want to create. */ 700 702 } … … 2776 2778 if (RT_FAILURE(rc)) 2777 2779 { 2778 switch (rc) 2779 { 2780 case VERR_GSTCTL_GUEST_ERROR: 2781 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: %s", 2782 GuestDirectory::i_guestErrorToString(rcGuest).c_str())); 2783 break; 2784 2785 case VERR_INVALID_PARAMETER: 2786 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: Invalid parameters given")); 2787 break; 2788 2789 case VERR_BROKEN_PIPE: 2790 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: Unexpectedly aborted")); 2791 break; 2792 2793 default: 2794 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: %Rrc"), rc); 2795 break; 2780 if (GuestProcess::i_isGuestError(rc)) 2781 { 2782 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: %s"), 2783 GuestDirectory::i_guestErrorToString(rcGuest).c_str()); 2784 } 2785 else 2786 { 2787 switch (rc) 2788 { 2789 case VERR_INVALID_PARAMETER: 2790 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: Invalid parameters given")); 2791 break; 2792 2793 case VERR_BROKEN_PIPE: 2794 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: Unexpectedly aborted")); 2795 break; 2796 2797 default: 2798 hr = setError(VBOX_E_IPRT_ERROR, tr("Directory creation failed: %Rrc"), rc); 2799 break; 2800 } 2796 2801 } 2797 2802 }
Note:
See TracChangeset
for help on using the changeset viewer.