VirtualBox

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


Ignore:
Timestamp:
Apr 14, 2010 2:43:38 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control: Update (error handling).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r28300 r28305  
    595595        int vrc = VINF_SUCCESS;
    596596        Utf8Str Utf8Command(aCommand);
     597
     598        /* Adjust timeout */
     599        if (aTimeoutMS == 0)
     600            aTimeoutMS = UINT32_MAX;
    597601
    598602        /* Prepare arguments. */       
     
    724728                    }
    725729                }
     730                else /* If callback not called within time ... well, that's a timeout! */
     731                    vrc = VERR_TIMEOUT;
    726732                removeCtrlCallbackContext(it);
    727733
     
    732738                        rc = setError(VBOX_E_IPRT_ERROR,
    733739                                      tr("The file \"%s\" was not found on guest"), Utf8Command.raw());
     740                    }
     741                    else if (vrc == VERR_TIMEOUT)
     742                    {
     743                        rc = setError(VBOX_E_IPRT_ERROR,
     744                                      tr("The guest guest did not respond within time (%ums)"), aTimeoutMS);
    734745                    }
    735746                    else
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