VirtualBox

Changeset 65237 in vbox for trunk/src


Ignore:
Timestamp:
Jan 11, 2017 9:15:06 AM (8 years ago)
Author:
vboxsync
Message:

filesplitter.cpp: More error info on windows (had a weird EINVAL failure).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/filesplitter.cpp

    r62537 r65237  
    9696    FILE *pFile= fopen(pcszPath, "w");
    9797    if (!pFile)
    98         return printErr("Failed to open \"%s\" for writing the file list");
     98#ifdef _MSC_VER
     99        return printErr("Failed to open \"%s\" for writing the file list: %s (win32: %d)\n",
     100                        pcszPath, strerror(errno), _doserrno);
     101#else
     102        return printErr("Failed to open \"%s\" for writing the file list: %s\n", pcszPath, strerror(errno));
     103#endif
    99104
    100105    if (fprintf(pFile, "%s := \\\n", pcszVariableName) <= 0)
     
    241246    FILE   *pFile = fopen(pcszFilename, "w");
    242247    if (!pFile)
     248#ifdef _MSC_VER
     249        return printErr("Failed to open \"%s\" for writing: %s (win32: %d)\n", pcszFilename, strerror(errno), _doserrno);
     250#else
    243251        return printErr("Failed to open \"%s\" for writing: %s\n", pcszFilename, strerror(errno));
     252#endif
    244253
    245254    errno = 0;
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