VirtualBox

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


Ignore:
Timestamp:
May 28, 2020 12:14:17 PM (5 years ago)
Author:
vboxsync
Message:

Main + FE/VBoxManage: Fixes / better logging for reboot / shutdown support.

File:
1 edited

Legend:

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

    r84555 r84585  
    513513        return setError(E_INVALIDARG, tr("Invalid combination of flags (%#x)"), fFlags);
    514514
     515    Utf8Str strAction = (fFlags & GuestShutdownFlag_Reboot) ? tr("Rebooting") : tr("Shutting down");
     516
    515517    /*
    516518     * Create an anonymous session. This is required to run shutting down / rebooting
     
    518520     */
    519521    GuestSessionStartupInfo startupInfo;
    520     startupInfo.mName = "Shutting down guest";
     522    startupInfo.mName = strAction + " guest";
    521523
    522524    GuestCredentials guestCreds;
     
    541543                    case VERR_NOT_SUPPORTED:
    542544                        hrc = setErrorBoth(VBOX_E_NOT_SUPPORTED, vrc,
    543                                            tr("Shutting down not supported by installed Guest Additions"), vrc);
     545                                           tr("%s not supported by installed Guest Additions"), strAction.c_str());
    544546                        break;
    545547
     
    548550                        if (vrc == VERR_GSTCTL_GUEST_ERROR)
    549551                            vrc = rcGuest;
    550                         hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Could not shut down guest: %Rrc"), vrc);
     552                        hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Error %s guest: %Rrc"), strAction.c_str(), vrc);
    551553                        break;
    552554                    }
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