Changeset 14846 in vbox for trunk/src/VBox
- Timestamp:
- Dec 1, 2008 10:26:21 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r14843 r14846 2127 2127 /// @todo see @todo in AttachUSBDevice() about the Paused state 2128 2128 if (mMachineState == MachineState_Saved) 2129 return setError ( E_FAIL,2129 return setError (VBOX_E_INVALID_VM_STATE, 2130 2130 tr ("Cannot create a transient shared folder on the " 2131 2131 "machine in the saved state")); 2132 2132 if (mMachineState > MachineState_Paused) 2133 return setError ( E_FAIL,2133 return setError (VBOX_E_INVALID_VM_STATE, 2134 2134 tr ("Cannot create a transient shared folder on the " 2135 2135 "machine while it is changing the state (machine state: %d)"), … … 2139 2139 HRESULT rc = findSharedFolder (aName, sharedFolder, false /* aSetError */); 2140 2140 if (SUCCEEDED (rc)) 2141 return setError ( E_FAIL,2141 return setError (VBOX_E_FILE_ERROR, 2142 2142 tr ("Shared folder named '%ls' already exists"), aName); 2143 2143 … … 2151 2151 2152 2152 if (!accessible) 2153 return setError ( E_FAIL,2153 return setError (VBOX_E_FILE_ERROR, 2154 2154 tr ("Shared folder host path '%ls' is not accessible"), aHostPath); 2155 2155 … … 2199 2199 /// @todo see @todo in AttachUSBDevice() about the Paused state 2200 2200 if (mMachineState == MachineState_Saved) 2201 return setError ( E_FAIL,2201 return setError (VBOX_E_INVALID_VM_STATE, 2202 2202 tr ("Cannot remove a transient shared folder from the " 2203 2203 "machine in the saved state")); 2204 2204 if (mMachineState > MachineState_Paused) 2205 return setError ( E_FAIL,2205 return setError (VBOX_E_INVALID_VM_STATE, 2206 2206 tr ("Cannot remove a transient shared folder from the " 2207 2207 "machine while it is changing the state (machine state: %d)"), … … 4974 4974 4975 4975 if (aSetError) 4976 setError ( E_INVALIDARG,4976 setError (VBOX_E_FILE_ERROR, 4977 4977 tr ("Could not find a shared folder named '%ls'."), aName); 4978 4978 4979 return E_INVALIDARG;4979 return VBOX_E_FILE_ERROR; 4980 4980 } 4981 4981 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14843 r14846 4897 4897 folders and starts sharing it. Refer to the description of 4898 4898 <link to="ISharedFolder"/> to read more about logical names. 4899 4900 <result name="VBOX_E_INVALID_VM_STATE"> 4901 Virtual machine in Saved state or currently changing state. 4902 </result> 4903 <result name="VBOX_E_FILE_ERROR"> 4904 Shared folder already exists or not accessible. 4905 </result> 4899 4906 </desc> 4900 4907 <param name="name" type="wstring" dir="in"> … … 4914 4921 created by <link to="#createSharedFolder"/> from the collection of 4915 4922 shared folders and stops sharing it. 4923 <result name="VBOX_E_INVALID_VM_STATE"> 4924 Virtual machine in Saved state or currently changing state. 4925 </result> 4926 <result name="VBOX_E_FILE_ERROR"> 4927 Shared folder does not exists. 4928 </result> 4916 4929 </desc> 4917 4930 <param name="name" type="wstring" dir="in">
Note:
See TracChangeset
for help on using the changeset viewer.