VirtualBox

Changeset 8457 in vbox


Ignore:
Timestamp:
Apr 29, 2008 11:54:01 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30320
Message:

be more verbose on misconfigurations

File:
1 edited

Legend:

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

    r8442 r8457  
    199199        default:
    200200            AssertMsgFailed(("Invalid IDE controller type '%d'", controllerType));
    201             return VERR_INVALID_PARAMETER;
     201            return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
     202                              N_("Invalid IDE controller type '%d'"), controllerType);
    202203    }
    203204
     
    295296            default:
    296297                AssertMsgFailed(("Invalid bootDevice=%d\n", bootDevice));
    297                 return VERR_INVALID_PARAMETER;
     298                return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
     299                                  N_("Invalid boot device '%d'"), bootDevice);
    298300        }
    299301        rc = CFGMR3InsertString(pBiosCfg, szParamName, pszBootDevice);              RC_CHECK();
     
    960962                AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'",
    961963                                 adapterType, ulInstance));
    962                 return VERR_GENERAL_FAILURE;
     964                return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
     965                                  N_("Invalid network adapter type '%d' for slot '%d'"),
     966                                  adapterType, ulInstance);
    963967        }
    964968
Note: See TracChangeset for help on using the changeset viewer.

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