summaryrefslogtreecommitdiff
path: root/indra/llcommon/reflective.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-04-18 15:34:15 -0400
committerNat Goodspeed <nat@lindenlab.com>2012-04-18 15:34:15 -0400
commit54228ddf50b3396686a51a6fd51c1133916fc827 (patch)
tree3dae1a1479286dd267b8b0b91cc8fa807fcb66d7 /indra/llcommon/reflective.cpp
parent7318e11571237bd55ff5972350db499a73ef6ae5 (diff)
IQA-463: Add error logging for certain LLFile operations.
Attempting to debug an observed LLFile::remove() failure, I was floored to find that remove() made no attempt whatsoever to report its lack of success! Add warnif() function to log errno text in platform-dependent way. Support the notion that for some functions, certain errno values are acceptable -- e.g. we expect stat() to frequently hit ENOENT -- and need not be logged. Add commented-out Windows-specific logic to try to provide further information in the case of EACCES ("Permission denied," e.g. another process has the file open). To use, enable the code block, download handle.exe and turn on DEBUG logging for LLFile. handle.exe can be obtained from: http://technet.microsoft.com/en-us/sysinternals/bb896655
Diffstat (limited to 'indra/llcommon/reflective.cpp')
0 files changed, 0 insertions, 0 deletions