Index: /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp	(revision 35136)
+++ /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp	(revision 35137)
@@ -564,5 +564,6 @@
             {
                 CHECK_ERROR(pMedium2Mount, COMSETTER(Type)(mediumType));
-                throw  Utf8Str("Failed to set the medium type");
+                if (FAILED(rc))
+                    throw  Utf8Str("Failed to set the medium type");
             }
 
