VirtualBox

Changeset 39181 in vbox


Ignore:
Timestamp:
Nov 2, 2011 9:50:06 PM (13 years ago)
Author:
vboxsync
Message:

RTManifest.cpp: Fixed exit code mixup causing file reading errors to be ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTManifest.cpp

    r38636 r39181  
    150150    {
    151151        if (pszError && *pszError)
    152             return RTMsgErrorExit(RTEXITCODE_FAILURE,
    153                                   "RTVfsChainOpenIoStream failed with rc=%Rrc:\n"
    154                                   "    '%s'\n",
    155                                   "     %*s^\n",
    156                                   rc, pszFilename, pszError - pszFilename, "");
    157         return RTMsgErrorExit(RTEXITCODE_FAILURE,
    158                               "Failed with %Rrc opening '%s'", rc, pszFilename);
     152            RTMsgError("RTVfsChainOpenIoStream failed with rc=%Rrc:\n"
     153                       "    '%s'\n",
     154                       "     %*s^\n",
     155                       rc, pszFilename, pszError - pszFilename, "");
     156        else
     157            RTMsgError("Failed with %Rrc opening '%s'", rc, pszFilename);
     158        return rc;
    159159    }
    160160
     
    242242                chOpt = RTGetOpt(pGetState, pUnion);
    243243            }
    244             if (RT_SUCCESS(rc) &&  chOpt != 0)
     244            if (RT_SUCCESS(rc) && chOpt != 0)
    245245            {
    246246                RTGetOptPrintError(chOpt, pUnion);
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