VirtualBox

Changeset 89719 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 15, 2021 6:51:56 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145170
Message:

VBoxManage: change the error printing to use the standard code for this purpose, and add a todo for handling the warnings this way, too.

File:
1 edited

Legend:

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

    r87278 r89719  
    444444            RTStrmPrintf(g_pStdErr, "Interpreting %ls...\n", path.raw());
    445445            rc = pAppliance->Interpret();
    446             com::ErrorInfo info0(pAppliance, COM_IIDOF(IAppliance));
    447 
     446            com::ErrorInfoKeeper eik;
     447
     448            /** @todo r=klaus Eliminate this special way of signalling
     449             * warnings which should be part of the ErrorInfo. */
    448450            com::SafeArray<BSTR> aWarnings;
    449451            if (SUCCEEDED(pAppliance->GetWarnings(ComSafeArrayAsOutParam(aWarnings))))
     
    457459            }
    458460
     461            eik.restore();
    459462            if (FAILED(rc))     // during interpret, after printing warnings
    460463            {
    461                 com::GluePrintErrorInfo(info0);
    462                 com::GluePrintErrorContext("Interpret", __FILE__, __LINE__);
     464                com::GlueHandleComError(pAppliance, "Interpret()", rc, __FILE__, __LINE__);
    463465                break;
    464466            }
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