- Timestamp:
- Dec 1, 2008 10:05:21 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r14793 r14843 2022 2022 if (mMachineState != MachineState_Running && 2023 2023 mMachineState != MachineState_Paused) 2024 return setError ( E_FAIL,2024 return setError (VBOX_E_INVALID_VM_STATE, 2025 2025 tr ("Cannot attach a USB device to the machine which is not running " 2026 2026 "(machine state: %d)"), mMachineState); … … 2034 2034 int vrc = PDMR3QueryLun (mpVM, "usb-ohci", 0, 0, &pBase); 2035 2035 if (VBOX_FAILURE (vrc)) 2036 return setError ( E_FAIL,2036 return setError (VBOX_E_PDM_ERROR, 2037 2037 tr ("The virtual machine does not have a USB controller")); 2038 2038 … … 2048 2048 2049 2049 #else /* !VBOX_WITH_USB */ 2050 return setError ( E_FAIL,2050 return setError (VBOX_E_PDM_ERROR, 2051 2051 tr ("The virtual machine does not have a USB controller")); 2052 2052 #endif /* !VBOX_WITH_USB */ … … 2109 2109 2110 2110 #else /* !VBOX_WITH_USB */ 2111 return setError (E_INVALIDARG, 2112 tr ("USB device with UUID {%RTuuid} is not attached to this machine"), 2113 Guid (aId).raw()); 2111 return setError (VBOX_E_PDM_ERROR, 2112 tr ("The virtual machine does not have a USB controller")); 2114 2113 #endif /* !VBOX_WITH_USB */ 2115 2114 } -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14842 r14843 4828 4828 <desc> 4829 4829 Gets the current activity type of a given device or device group. 4830 <result name="E_INVALIDARG"> 4831 Invalid device type. 4832 </result> 4830 4833 </desc> 4831 4834 <param name="type" type="DeviceType" dir="in"/> … … 4849 4852 4850 4853 <see>IUSBController::deviceFilters, USBDeviceState</see> 4854 <result name="VBOX_E_INVALID_VM_STATE"> 4855 Virtual machine state neither Running nor Paused. 4856 </result> 4857 <result name="VBOX_E_PDM_ERROR"> 4858 Virtual machine does not have a USB controller. 4859 </result> 4851 4860 </desc> 4852 4861 <param name="id" type="uuid" dir="in"> … … 4866 4875 4867 4876 <see>IUSBController::deviceFilters, USBDeviceState</see> 4877 4878 <result name="VBOX_E_PDM_ERROR"> 4879 Virtual machine does not have a USB controller. 4880 </result> 4881 <result name="E_INVALIDARG"> 4882 USB device not attached to this virtual machine. 4883 </result> 4868 4884 </desc> 4869 4885 <param name="id" type="uuid" dir="in">
Note:
See TracChangeset
for help on using the changeset viewer.