VirtualBox

Changeset 29807 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 26, 2010 10:13:20 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62016
Message:

Guest Control/IPRT/VBoxManage: More gentle error messages, bug fix for process lookup with different user, correct return value of process start error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r29786 r29807  
    322322            if (FAILED(rc))
    323323            {
     324                /* If we got a VBOX_E_IPRT error we handle the error in a more gentle way
     325                 * because it contains more accurate info about what went wrong. */
    324326                ErrorInfo info(guest);
    325327                if (info.isFullAvailable())
    326                     RTPrintf("ERROR: %ls (%Rhrc).\n", info.getText().raw(), info.getResultCode());
     328                {
     329                    if (rc == VBOX_E_IPRT_ERROR)
     330                    {
     331                        RTPrintf("%ls.\n", info.getText().raw());
     332                    }
     333                    else
     334                    {
     335                        RTPrintf("ERROR: %ls (%Rhrc).\n", info.getText().raw(), info.getResultCode());
     336                    }
     337                }
    327338                break;
    328339            }
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