Changeset 2390


Ignore:
Timestamp:
30/11/2008 21:56:37 (3 years ago)
Author:
chris
Message:

Log the Windows error code if openfile() fails on Windows, as
the default strerror() seems borked and reports EBUSY (file in
use) as"Resource device".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/FileStream.cpp

    r2297 r2390  
    7474                else 
    7575                { 
     76                        #ifdef WIN32 
     77                        BOX_LOG_WIN_WARNING("Failed to open file: " << 
     78                                mFileName); 
     79                        #else 
    7680                        BOX_LOG_SYS_WARNING("Failed to open file: " << 
    7781                                mFileName); 
     82                        #endif 
    7883                        THROW_EXCEPTION(CommonException, OSFileOpenError) 
    7984                } 
Note: See TracChangeset for help on using the changeset viewer.