VirtualBox

Ignore:
Timestamp:
Jun 21, 2010 9:30:16 AM (14 years ago)
Author:
vboxsync
Message:

VBoxManage: cosmetical fixes

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp

    r30109 r30322  
    114114                    return errorSyntax(USAGE_DHCPSERVER, "You can only specify --netname once.");
    115115                else if (pIfName)
    116                     return errorSyntax(USAGE_DHCPSERVER, "You can either use a --netname or --ifname for identifying the dhcp server.");
     116                    return errorSyntax(USAGE_DHCPSERVER, "You can either use a --netname or --ifname for identifying the DHCP server.");
    117117                else
    118118                {
     
    124124                    return errorSyntax(USAGE_DHCPSERVER, "You can only specify --ifname once.");
    125125                else if (pNetName)
    126                     return errorSyntax(USAGE_DHCPSERVER, "You can either use a --netname or --ipname for identifying the dhcp server.");
     126                    return errorSyntax(USAGE_DHCPSERVER, "You can either use a --netname or --ipname for identifying the DHCP server.");
    127127                else
    128128                {
     
    199199
    200200    if(! pNetName && !pIfName)
    201         return errorSyntax(USAGE_DHCPSERVER, "You need to specify either --netname or --ifname to identify the dhcp server");
     201        return errorSyntax(USAGE_DHCPSERVER, "You need to specify either --netname or --ifname to identify the DHCP server");
    202202
    203203    if(enmCode != OP_REMOVE)
     
    227227        ComPtr<IHostNetworkInterface> hif;
    228228        CHECK_ERROR(host, FindHostNetworkInterfaceByName(Bstr(pIfName).mutableRaw(), hif.asOutParam()));
    229         if(FAILED(rc))
    230             return errorArgument("could not find interface '%s'", pIfName);
     229        if (FAILED(rc))
     230            return errorArgument("Could not find interface '%s'", pIfName);
    231231
    232232        CHECK_ERROR(hif, COMGETTER(NetworkName) (NetName.asOutParam()));
    233         if(FAILED(rc))
    234             return errorArgument("could not get network name for the interface '%s'", pIfName);
     233        if (FAILED(rc))
     234            return errorArgument("Could not get network name for the interface '%s'", pIfName);
    235235    }
    236236    else
     
    243243    if(enmCode == OP_ADD)
    244244    {
    245         if(SUCCEEDED(rc))
    246             return errorArgument("dhcp server already exists");
     245        if (SUCCEEDED(rc))
     246            return errorArgument("DHCP server already exists");
    247247
    248248        CHECK_ERROR(a->virtualBox, CreateDHCPServer(NetName.mutableRaw(), svr.asOutParam()));
    249         if(FAILED(rc))
    250             return errorArgument("failed to create server");
    251     }
    252     else if(FAILED(rc))
    253     {
    254         return errorArgument("dhcp server does not exist");
     249        if (FAILED(rc))
     250            return errorArgument("Failed to create the DHCP server");
     251    }
     252    else if (FAILED(rc))
     253    {
     254        return errorArgument("DHCP server does not exist");
    255255    }
    256256
     
    261261            CHECK_ERROR(svr, SetConfiguration (Bstr(pIp).mutableRaw(), Bstr(pNetmask).mutableRaw(), Bstr(pLowerIp).mutableRaw(), Bstr(pUpperIp).mutableRaw()));
    262262            if(FAILED(rc))
    263                 return errorArgument("failed to set configuration");
     263                return errorArgument("Failed to set configuration");
    264264        }
    265265
     
    273273        CHECK_ERROR(a->virtualBox, RemoveDHCPServer(svr));
    274274        if(FAILED(rc))
    275             return errorArgument("failed to remove server");
     275            return errorArgument("Failed to remove server");
    276276    }
    277277
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp

    r28800 r30322  
    240240
    241241    if (FAILED(rc))
    242         return errorArgument("could not find interface '%s'", a->argv[iStart]);
     242        return errorArgument("Could not find interface '%s'", a->argv[iStart]);
    243243
    244244    if (bDhcp)
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