Changeset 84585 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 28, 2020 12:14:17 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r84555 r84585 513 513 return setError(E_INVALIDARG, tr("Invalid combination of flags (%#x)"), fFlags); 514 514 515 Utf8Str strAction = (fFlags & GuestShutdownFlag_Reboot) ? tr("Rebooting") : tr("Shutting down"); 516 515 517 /* 516 518 * Create an anonymous session. This is required to run shutting down / rebooting … … 518 520 */ 519 521 GuestSessionStartupInfo startupInfo; 520 startupInfo.mName = "Shutting downguest";522 startupInfo.mName = strAction + " guest"; 521 523 522 524 GuestCredentials guestCreds; … … 541 543 case VERR_NOT_SUPPORTED: 542 544 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()); 544 546 break; 545 547 … … 548 550 if (vrc == VERR_GSTCTL_GUEST_ERROR) 549 551 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); 551 553 break; 552 554 }
Note:
See TracChangeset
for help on using the changeset viewer.