VirtualBox

Changeset 71327 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 14, 2018 2:29:43 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Better error texts for IGuestSession::getUserHome() and IGuestSession::getUserDocuments().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r71314 r71327  
    556556        switch (vrc)
    557557        {
    558             case VERR_NOT_SUPPORTED:
    559                 hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's home path is not supported by installed Guest Additions"));
     558            case VERR_GSTCTL_GUEST_ERROR:
     559            {
     560                switch (rcGuest)
     561                {
     562                    case VERR_NOT_SUPPORTED:
     563                        hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's home path is not supported by installed Guest Additions"));
     564                        break;
     565
     566                    break;
     567                        hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's home path failed on the guest: %Rrc"), rcGuest);
     568                        break;
     569                }
    560570                break;
    561 
    562             case VERR_GSTCTL_GUEST_ERROR:
    563                 hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's home path failed: %Rrc"), rcGuest);
    564                 break;
     571            }
    565572
    566573            default:
     
    585592        switch (vrc)
    586593        {
    587             case VERR_NOT_SUPPORTED:
    588                 hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's documents path is not supported by installed Guest Additions"));
     594            case VERR_GSTCTL_GUEST_ERROR:
     595            {
     596                switch (rcGuest)
     597                {
     598                    case VERR_NOT_SUPPORTED:
     599                        hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's documents path is not supported by installed Guest Additions"));
     600                        break;
     601
     602                    break;
     603                        hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's documents path failed on the guest: %Rrc"), rcGuest);
     604                        break;
     605                }
    589606                break;
    590 
    591             case VERR_GSTCTL_GUEST_ERROR:
    592                 hr = setError(VBOX_E_IPRT_ERROR, tr("Getting the user's documents path failed: %Rrc"), rcGuest);
    593                 break;
     607            }
    594608
    595609            default:
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