未验证 提交 45f37102 编写于 作者: D Daniel Larimer 提交者: GitHub

Merge pull request #3176 from EOSIO/translate-expection-in-controller

Add exception translation and logging to controller_impl.
......@@ -142,8 +142,10 @@ struct controller_impl {
void emit( const Signal& s, Arg&& a ) {
try {
s(std::forward<Arg>(a));
} catch ( fc::exception& e ) {
wlog( "${details}", ("details", e.to_detail_string()) );
} catch ( ... ) {
elog( "signal handler threw exception" );
wlog( "signal handler threw exception" );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册