[SVN r70989]
This commit is contained in:
Emil Dotchevski
2011-04-05 00:25:59 +00:00
parent cc0d73af9d
commit 9bab07e9bc

View File

@ -127,18 +127,26 @@ boost
std::ostringstream tmp; std::ostringstream tmp;
if( be ) if( be )
{ {
if( char const * const * f=get_error_info<throw_file>(*be) ) char const * const * f=get_error_info<throw_file>(*be);
{ int const * l=get_error_info<throw_line>(*be);
tmp << *f; char const * const * fn=get_error_info<throw_function>(*be);
if( int const * l=get_error_info<throw_line>(*be) ) if( !f && !l && !fn )
tmp << '(' << *l << "): "; tmp << "Throw location unknown (consider using BOOST_THROW_EXCEPTION)\n";
}
tmp << "Throw in function ";
if( char const * const * fn=get_error_info<throw_function>(*be) )
tmp << *fn;
else else
tmp << "(unknown)"; {
tmp << '\n'; if( f )
{
tmp << *f;
if( int const * l=get_error_info<throw_line>(*be) )
tmp << '(' << *l << "): ";
}
tmp << "Throw in function ";
if( char const * const * fn=get_error_info<throw_function>(*be) )
tmp << *fn;
else
tmp << "(unknown)";
tmp << '\n';
}
} }
#ifndef BOOST_NO_RTTI #ifndef BOOST_NO_RTTI
tmp << std::string("Dynamic exception type: ") << tmp << std::string("Dynamic exception type: ") <<