|author||Chris Wilson <email@example.com>||2008-03-28 22:18:44 +0000|
|committer||Chris Wilson <firstname.lastname@example.org>||2008-03-28 22:18:44 +0000|
Improve logging with macros that consistently output strerror(errno) and
errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
Diffstat (limited to 'lib/common/Guards.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/Guards.h b/lib/common/Guards.h
index d2fb84e0..cd2e4628 100644
@@ -37,8 +37,8 @@ public:
if(mOSFileHandle < 0)
- BOX_ERROR("FileHandleGuard: failed to open file '" <<
- rFilename << "': " << strerror(errno));
+ BOX_LOG_SYS_ERROR("FileHandleGuard: failed to open "
+ "file '" << rFilename << "'");