Index: /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp	(revision 35135)
+++ /trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp	(revision 35136)
@@ -73,4 +73,5 @@
     ULONG device = ~0U;
     bool fForceUnmount = false;
+    bool fSetMediumType = false;
     MediumType_T mediumType = MediumType_Normal;
     Bstr bstrComment;
@@ -215,4 +216,5 @@
                 if (RT_FAILURE(vrc))
                     return errorArgument("Invalid hard disk type '%s'", ValueUnion.psz);
+                fSetMediumType = true;
                 break;
             }
@@ -559,7 +561,8 @@
 
             // set medium type, if so desired
-            if (pMedium2Mount && mediumType != MediumType_Normal)
+            if (pMedium2Mount && fSetMediumType)
             {
                 CHECK_ERROR(pMedium2Mount, COMSETTER(Type)(mediumType));
+                throw  Utf8Str("Failed to set the medium type");
             }
 
