VirtualBox

Changeset 16581 in vbox for trunk


Ignore:
Timestamp:
Feb 9, 2009 12:08:17 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42543
Message:

VBoxManage: fix import error handling

File:
1 edited

Legend:

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

    r16570 r16581  
    232232
    233233                if (SUCCEEDED(rc))
     234                    progress->COMGETTER(ResultCode)(&rc);
     235
     236                if (FAILED(rc))
    234237                {
    235                     progress->COMGETTER(ResultCode)(&rc);
    236                     if (FAILED (rc))
    237                     {
    238                         com::ProgressErrorInfo info(progress);
    239                         if (info.isBasicAvailable())
    240                             RTPrintf("Error: failed to import appliance. Error message: %lS\n", info.getText().raw());
    241                         else
    242                             RTPrintf("Error: failed to import appliance. No error message available!\n");
    243                     }
    244                     else
    245                         RTPrintf("Successfully imported the appliance.\n");
     238                    com::ProgressErrorInfo info(progress);
     239                    com::GluePrintErrorInfo(info);
     240                    com::GluePrintErrorContext("ImportAppliance", __FILE__, __LINE__);
    246241                }
     242                else
     243                    RTPrintf("Successfully imported the appliance.\n");
    247244            }
    248245        } // end if (aVirtualSystemDescriptions.size() > 0)
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