Unverified Commit 12c7c299 authored by kladko's avatar kladko

ehnahncement/SKALE-3364-check-server-limits-before-running-sgxwallet

parent 74f81b9c
...@@ -160,7 +160,7 @@ uint64_t initEnclave() { ...@@ -160,7 +160,7 @@ uint64_t initEnclave() {
} else { } else {
spdlog::error("sgx_create_enclave_search failed {} {}", ENCLAVE_NAME, status); spdlog::error("sgx_create_enclave_search failed {} {}", ENCLAVE_NAME, status);
} }
exit(-17); exit(-21);
} }
spdlog::info("Enclave created and started successfully"); spdlog::info("Enclave created and started successfully");
...@@ -233,6 +233,6 @@ void initAll(uint32_t _logLevel, bool _checkCert, bool _autoSign) { ...@@ -233,6 +233,6 @@ void initAll(uint32_t _logLevel, bool _checkCert, bool _autoSign) {
exception_ptr p = current_exception(); exception_ptr p = current_exception();
printf("Exception %s \n", p.__cxa_exception_type()->name()); printf("Exception %s \n", p.__cxa_exception_type()->name());
spdlog::error("Unknown exception"); spdlog::error("Unknown exception");
exit(-20); exit(0);
} }
}; };
...@@ -64,7 +64,7 @@ inline void print_stack() { ...@@ -64,7 +64,7 @@ inline void print_stack() {
// print out all the frames to stderr // print out all the frames to stderr
fprintf(stderr, "Error: signal \n"); fprintf(stderr, "Error: signal \n");
backtrace_symbols_fd(array, size, STDERR_FILENO); backtrace_symbols_fd(array, size, STDERR_FILENO);
exit(1); exit(-1);
} }
......
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