VirtualBox

Changeset 16258 in vbox


Ignore:
Timestamp:
Jan 27, 2009 10:35:04 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42066
Message:

Main/USBProxyService-linux: clean up error reporting a bit

File:
1 edited

Legend:

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

    r16207 r16258  
    23262326         * USB proxy service could not start. */
    23272327
    2328         Bstr message;
    2329         if (   SUCCEEDED(mUSBProxyService->getLastErrorMessage(message.asOutParam()))
    2330             && !message.isNull())
    2331             return setWarning (E_FAIL, Utf8Str(message).raw());
    23322328        if (mUSBProxyService->getLastError() == VERR_FILE_NOT_FOUND)
    23332329            return setWarning (E_FAIL,
     
    23362332                mUSBProxyService->getLastError());
    23372333        if (mUSBProxyService->getLastError() == VINF_SUCCESS)
     2334#ifdef RT_OS_LINUX
     2335            return setWarning (VBOX_E_HOST_ERROR,
     2336# ifdef VBOX_WITH_DBUS
     2337                tr ("The USB Proxy Service could not be started, because neither the USB file system (usbfs) nor the hardware information service (hal) is available")
     2338# else
     2339                tr ("The USB Proxy Service could not be started, because the USB file system (usbfs) is not available")
     2340# endif
     2341                              );
     2342#else
    23382343            return setWarning (E_FAIL,
    23392344                tr ("The USB Proxy Service has not yet been ported to this host"));
     2345#endif
    23402346        return setWarning (E_FAIL,
    23412347            tr ("Could not load the Host USB Proxy service (%Rrc)"),
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette