VirtualBox

Changeset 38586 in vbox


Ignore:
Timestamp:
Aug 31, 2011 3:07:47 PM (13 years ago)
Author:
vboxsync
Message:

VBoxManage: Error checks.

File:
1 edited

Legend:

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

    r38561 r38586  
    11871187        rc = showProgress(progress);
    11881188        CHECK_PROGRESS_ERROR(progress, ("File copy failed"));
     1189        if (FAILED(rc))
     1190            vrc = ctrlPrintError(pContext->pGuest, COM_IIDOF(IGuest));
    11891191    }
    11901192
     
    20672069                if (!fExists)
    20682070                {
    2069                     RTPrintf("Cannot stat for element \"%s\": No such file or directory.\n",
     2071                    RTPrintf("Cannot stat for element \"%s\": No such file or directory\n",
    20702072                             it->first.c_str());
    20712073                    rcExit = RTEXITCODE_FAILURE;
     
    21512153        else
    21522154        {
    2153             RTMsgError("Source could not be determined! Please use --source to specify a valid source.\n");
     2155            RTMsgError("Source could not be determined! Please use --source to specify a valid source\n");
    21542156            vrc = VERR_FILE_NOT_FOUND;
    21552157        }
     
    21782180            rc = showProgress(progress);
    21792181            CHECK_PROGRESS_ERROR(progress, ("Guest additions update failed"));
    2180             if (   SUCCEEDED(rc)
    2181                 && fVerbose)
    2182                 RTPrintf("Guest Additions update successful.\n");
     2182            if (FAILED(rc))
     2183                vrc = ctrlPrintError(guest, COM_IIDOF(IGuest));
     2184            else if (   SUCCEEDED(rc)
     2185                     && fVerbose)
     2186            {
     2187                RTPrintf("Guest Additions update successful\n");
     2188            }
    21832189        }
    21842190    }
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