提交 26bd5846 编写于 作者: A Andrianto Lie

Add exception what to the thrown connection exception

上级 56985e41
......@@ -49,8 +49,11 @@ namespace eosio { namespace client { namespace http {
if( endpoint_iterator != end ) {
continue;
} else {
FC_THROW_EXCEPTION(connection_exception, "Connection to ${server}:${port}${path} is refused",
("server", server)("port", port)("path", path));
throw connection_exception(fc::log_messages{
FC_LOG_MESSAGE( error, "Connection to ${server}:${port}${path} is refused",
("server", server)("port", port)("path", path) ),
FC_LOG_MESSAGE( error, e.what())
});
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册