VirtualBox

Changeset 25927 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 20, 2010 11:38:03 AM (15 years ago)
Author:
vboxsync
Message:

OVF: rework of r56747

File:
1 edited

Legend:

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

    r25919 r25927  
    936936        int vrc = RTSha1Digest(pTask->locInfo.strPath.c_str(), &pszDigest);
    937937        if (RT_FAILURE(vrc))
    938             throw OVFLogicError(tr("Couldn't calculate SHA1 digest for file '%s' (%Rrc)"),
    939                                 RTPathFilename(pTask->locInfo.strPath.c_str()), vrc);
     938            throw setError(VBOX_E_FILE_ERROR,
     939                           tr("Couldn't calculate SHA1 digest for file '%s' (%Rrc)"),
     940                           RTPathFilename(pTask->locInfo.strPath.c_str()), vrc);
    940941        m->strOVFSHA1Digest = pszDigest;
    941942        RTStrFree(pszDigest);
     
    945946        rc = setError(VBOX_E_FILE_ERROR,
    946947                      x.what());
     948    }
     949    catch(HRESULT aRC)
     950    {
     951        rc = aRC;
    947952    }
    948953
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