VirtualBox

Ignore:
Timestamp:
Jul 9, 2018 11:09:32 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123555
Message:

Main: Use setErrorBoth when we've got a VBox status code handy. (The COM status codes aren't too specfic and this may help us decode error messages and provide an alternative to strstr for API clients. setErrorBoth isn't new, btw.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r72476 r73003  
    490490                        throw setError(VBOX_E_NOT_SUPPORTED,
    491491                                       tr("Cannot handle medium attachment: channel is %d, device is %d"), lChannel, lDevice);
    492                 break;
     492                    break;
    493493
    494494                case StorageBus_SATA:
    495495                    lChannelVsys = lChannel;        // should be between 0 and 29
    496496                    lControllerVsys = lSATAControllerIndex;
    497                 break;
     497                    break;
    498498
    499499                case StorageBus_SCSI:
     
    501501                    lChannelVsys = lChannel;        // should be between 0 and 15
    502502                    lControllerVsys = lSCSIControllerIndex;
    503                 break;
     503                    break;
    504504
    505505                case StorageBus_Floppy:
    506506                    lChannelVsys = 0;
    507507                    lControllerVsys = 0;
    508                 break;
     508                    break;
    509509
    510510                default:
     
    512512                                   tr("Cannot handle medium attachment: storageBus is %d, channel is %d, device is %d"),
    513513                                   storageBus, lChannel, lDevice);
    514                 break;
    515514            }
    516515
Note: See TracChangeset for help on using the changeset viewer.

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