mirror of
https://github.com/boostorg/regex.git
synced 2025-07-05 16:46:31 +02:00
Changed no-exception behaviour to call throw_exception directly so that the handler sees the actual error message.
[SVN r20361]
This commit is contained in:
@ -236,15 +236,12 @@ void BOOST_REGEX_CALL w32_traits_base::do_init()
|
||||
if(*regex_message_catalogue)
|
||||
{
|
||||
hresmod = LoadLibraryA(regex_message_catalogue);
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
if(hresmod == NULL)
|
||||
{
|
||||
std::string s("Unable to open dll: ");
|
||||
throw std::runtime_error(s + regex_message_catalogue);
|
||||
std::runtime_error err(s + regex_message_catalogue);
|
||||
boost::throw_exception(err);
|
||||
}
|
||||
#else
|
||||
BOOST_REGEX_NOEH_ASSERT(hresmod != NULL);
|
||||
#endif
|
||||
}
|
||||
unsigned int i;
|
||||
for(i = 0; i < REG_E_UNKNOWN; ++i)
|
||||
|
Reference in New Issue
Block a user