Merge pull request #193 from bitshares/fix-exception-to-string
Fix potential infinity loop in `exception::to_detail_string()`
This commit is contained in:
commit
3a2902e3c7
1 changed files with 1 additions and 1 deletions
|
|
@ -205,12 +205,12 @@ namespace fc
|
||||||
ss << "ERROR: Failed to convert log data to string!\n";
|
ss << "ERROR: Failed to convert log data to string!\n";
|
||||||
}
|
}
|
||||||
ss << " " << itr->get_context().to_string();
|
ss << " " << itr->get_context().to_string();
|
||||||
++itr;
|
|
||||||
} catch( std::bad_alloc& ) {
|
} catch( std::bad_alloc& ) {
|
||||||
throw;
|
throw;
|
||||||
} catch( ... ) {
|
} catch( ... ) {
|
||||||
ss << "<- exception in to_detail_string.";
|
ss << "<- exception in to_detail_string.";
|
||||||
}
|
}
|
||||||
|
++itr;
|
||||||
if( itr != my->_elog.end() ) ss<<"\n";
|
if( itr != my->_elog.end() ) ss<<"\n";
|
||||||
}
|
}
|
||||||
} catch( std::bad_alloc& ) {
|
} catch( std::bad_alloc& ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue