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 ") + \ ...@@ -121,7 +121,7 @@ string __ERR_STRING__ = string("SGX enclave call to ") + \
__FUNCTION__ + " failed with status:" \ __FUNCTION__ + " failed with status:" \
+ to_string(__STATUS__) + \ + to_string(__STATUS__) + \
" Err message:" + __ERR_MSG__; \ " Err message:" + __ERR_MSG__; \
BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_MSG__))); \ BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_STRING__))); \
}\ }\
\ \
if (__ERR_STATUS__ != 0) {\ if (__ERR_STATUS__ != 0) {\
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<ISVSVN>3</ISVSVN> <ISVSVN>3</ISVSVN>
<StackMaxSize>0x200000</StackMaxSize> <StackMaxSize>0x200000</StackMaxSize>
<HeapMaxSize>0x200000</HeapMaxSize> <HeapMaxSize>0x200000</HeapMaxSize>
<TCSNum>20</TCSNum> <TCSNum>25</TCSNum>
<TCSMaxNum>20</TCSMaxNum> <TCSMaxNum>25</TCSMaxNum>
<TCSMinPool>20</TCSMinPool> <TCSMinPool>25</TCSMinPool>
<TCSPolicy>0</TCSPolicy> <TCSPolicy>0</TCSPolicy>
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release --> <!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
<DisableDebug>0</DisableDebug> <DisableDebug>0</DisableDebug>
......
...@@ -233,6 +233,7 @@ pair <string, shared_ptr<zmq::message_t>> ZMQServer::receiveMessage() { ...@@ -233,6 +233,7 @@ pair <string, shared_ptr<zmq::message_t>> ZMQServer::receiveMessage() {
} }
auto result = string((char *) reqMsg->data(), reqMsg->size()); auto result = string((char *) reqMsg->data(), reqMsg->size());
spdlog::debug("Received request via ZMQ server: {}", result);
return {result, identity}; return {result, identity};
} }
...@@ -255,6 +256,7 @@ void ZMQServer::sendToClient(Json::Value &_result, shared_ptr <zmq::message_t> & ...@@ -255,6 +256,7 @@ void ZMQServer::sendToClient(Json::Value &_result, shared_ptr <zmq::message_t> &
if (!s_send(*socket, replyStr)) { if (!s_send(*socket, replyStr)) {
exit(-16); exit(-16);
} }
spdlog::debug("Send response to client: {}", replyStr);
} catch (ExitRequestedException) { } catch (ExitRequestedException) {
throw; throw;
} catch (exception &e) { } 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