VirtualBox

Changeset 24348 in vbox


Ignore:
Timestamp:
Nov 4, 2009 5:22:07 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54371
Message:

Main: better error message when snapshot diff image is gone

File:
1 edited

Legend:

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

    r24345 r24348  
    59265926                /* find a hard disk by UUID */
    59275927                rc = mParent->findHardDisk(&dev.uuid, NULL, true /* aDoSetError */, &medium);
    5928                 CheckComRCReturnRC(rc);
     5928                if (FAILED(rc))
     5929                {
     5930                    if (mType == IsSnapshotMachine)
     5931                    {
     5932                        // wrap another error message around the "cannot find hard disk" set by findHardDisk
     5933                        // so the user knows that the bad disk is in a snapshot somewhere
     5934                        com::ErrorInfo info;
     5935                        return setError(E_FAIL,
     5936                                        tr("A differencing image of snapshot {%RTuuid} could not be found. %ls"),
     5937                                        aSnapshotId->raw(),
     5938                                        info.getText().raw());
     5939                    }
     5940                    else
     5941                        return rc;
     5942                }
    59295943
    59305944                AutoWriteLock hdLock(medium);
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