Fix potential infinity loop

Fix exception::to_detail_string(...)
This commit is contained in:
abitmore 2020-03-28 16:05:03 +00:00
parent 4bc1405643
commit cc1103fe45

View file

@ -205,12 +205,12 @@ namespace fc
ss << "ERROR: Failed to convert log data to string!\n";
}
ss << " " << itr->get_context().to_string();
++itr;
} catch( std::bad_alloc& ) {
throw;
} catch( ... ) {
ss << "<- exception in to_detail_string.";
}
++itr;
if( itr != my->_elog.end() ) ss<<"\n";
}
} catch( std::bad_alloc& ) {