VirtualBox

Changeset 36986 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 6, 2011 3:29:52 PM (14 years ago)
Author:
vboxsync
Message:

Main/Host: use setError instead of setWarning, as the calling code isn't prepared for dealing with warning codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r36961 r36986  
    27392739        {
    27402740            case VERR_FILE_NOT_FOUND:  /** @todo what does this mean? */
    2741                 return setWarning(E_FAIL,
    2742                                   tr("Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might not be installed on the host computer"));
     2741                return setError(E_FAIL,
     2742                                tr("Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might not be installed on the host computer"));
    27432743            case VERR_VUSB_USB_DEVICE_PERMISSION:
    2744                 return setWarning(E_FAIL,
    2745                                   tr("VirtualBox is not currently allowed to access USB devices.  You can change this by adding your user to the 'vboxusers' group.  Please see the user manual for a more detailed explanation"));
     2744                return setError(E_FAIL,
     2745                                tr("VirtualBox is not currently allowed to access USB devices.  You can change this by adding your user to the 'vboxusers' group.  Please see the user manual for a more detailed explanation"));
    27462746            case VERR_VUSB_USBFS_PERMISSION:
    2747                 return setWarning(E_FAIL,
    2748                                   tr("VirtualBox is not currently allowed to access USB devices.  You can change this by allowing your user to access the 'usbfs' folder and files.  Please see the user manual for a more detailed explanation"));
     2747                return setError(E_FAIL,
     2748                                tr("VirtualBox is not currently allowed to access USB devices.  You can change this by allowing your user to access the 'usbfs' folder and files.  Please see the user manual for a more detailed explanation"));
    27492749            case VINF_SUCCESS:
    2750                 return setWarning(E_FAIL,
    2751                                   tr("The USB Proxy Service has not yet been ported to this host"));
     2750                return setError(E_FAIL,
     2751                                tr("The USB Proxy Service has not yet been ported to this host"));
    27522752            default:
    2753                 return setWarning (E_FAIL, "%s: %Rrc",
    2754                                    tr ("Could not load the Host USB Proxy service"),
     2753                return setError(E_FAIL, "%s: %Rrc",
     2754                                tr ("Could not load the Host USB Proxy service"),
    27552755                                   m->pUSBProxyService->getLastError());
    27562756        }
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