VirtualBox

Changeset 54809 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Mar 17, 2015 12:07:04 PM (10 years ago)
Author:
vboxsync
Message:

Distinguished error codes when a provided password is wrong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r54798 r54809  
    48814881                    {
    48824882                        rc = pIMedium->pfnSetSecKeyIf(pIMedium, mpIfSecKey, mpIfSecKeyHlp);
    4883                         if (RT_FAILURE(rc))
     4883                        if (rc == VERR_VD_PASSWORD_INCORRECT)
     4884                            return setError(VBOX_E_PASSWORD_INCORRECT, tr("The provided password for ID \"%s\" is not correct for at least one disk using this ID"),
     4885                                            strId.c_str());
     4886                        else if (RT_FAILURE(rc))
    48844887                            return setError(E_FAIL, tr("Failed to set the encryption key (%Rrc)"), rc);
    48854888                    }
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