Unverified Commit 56e798c8 authored by Oleh Nikolaiev's avatar Oleh Nikolaiev Committed by GitHub

Merge pull request #376 from skalenetwork/bug/SKALE-4950-empty-error-message

Bug/skale 4950 empty error message
parents 774d4cc7 633d51a8
......@@ -121,7 +121,7 @@ string __ERR_STRING__ = string("SGX enclave call to ") + \
__FUNCTION__ + " failed with status:" \
+ to_string(__STATUS__) + \
" Err message:" + __ERR_MSG__; \
BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_MSG__))); \
BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_STRING__))); \
}\
\
if (__ERR_STATUS__ != 0) {\
......
......@@ -3,9 +3,9 @@
<ISVSVN>3</ISVSVN>
<StackMaxSize>0x200000</StackMaxSize>
<HeapMaxSize>0x200000</HeapMaxSize>
<TCSNum>20</TCSNum>
<TCSMaxNum>20</TCSMaxNum>
<TCSMinPool>20</TCSMinPool>
<TCSNum>25</TCSNum>
<TCSMaxNum>25</TCSMaxNum>
<TCSMinPool>25</TCSMinPool>
<TCSPolicy>0</TCSPolicy>
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
<DisableDebug>0</DisableDebug>
......
......@@ -233,6 +233,7 @@ pair <string, shared_ptr<zmq::message_t>> ZMQServer::receiveMessage() {
}
auto result = string((char *) reqMsg->data(), reqMsg->size());
spdlog::debug("Received request via ZMQ server: {}", result);
return {result, identity};
}
......@@ -255,6 +256,7 @@ void ZMQServer::sendToClient(Json::Value &_result, shared_ptr <zmq::message_t> &
if (!s_send(*socket, replyStr)) {
exit(-16);
}
spdlog::debug("Send response to client: {}", replyStr);
} catch (ExitRequestedException) {
throw;
} catch (exception &e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment