Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83862 - trunk/libs/log/src
From: andrey.semashev_at_[hidden]
Date: 2013-04-13 08:43:45


Author: andysem
Date: 2013-04-13 08:43:44 EDT (Sat, 13 Apr 2013)
New Revision: 83862
URL: http://svn.boost.org/trac/boost/changeset/83862

Log:
Corrected exception type when an unsupported placeholder is found in the file name pattern when scanning the filesystem.
Text files modified:
   trunk/libs/log/src/text_file_backend.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/log/src/text_file_backend.cpp
==============================================================================
--- trunk/libs/log/src/text_file_backend.cpp (original)
+++ trunk/libs/log/src/text_file_backend.cpp 2013-04-13 08:43:44 EDT (Sat, 13 Apr 2013)
@@ -432,7 +432,7 @@
                         unsigned int width = 0;
                         if (!parse_counter_placeholder(p, p_end, width))
                         {
- BOOST_LOG_THROW_DESCR(invalid_value, "Unsupported placeholder used in pattern for file scanning");
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Unsupported placeholder used in pattern for file scanning"));
                         }
 
                         // Find where the file number ends


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk