mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 15:35:07 -04:00
Print stack trace upon exceptions
Useful for debugging users' logs
This commit is contained in:
parent
d7fb03fc97
commit
fff238ec94
43 changed files with 259 additions and 63 deletions
|
@ -1426,7 +1426,7 @@ POP_WARNINGS
|
|||
#define CATCH_ENTRY_L4(lacation, return_val) CATCH_ENTRY(lacation, return_val)
|
||||
|
||||
|
||||
#define ASSERT_MES_AND_THROW(message) {LOG_ERROR(message); std::stringstream ss; ss << message; throw std::runtime_error(ss.str());}
|
||||
#define ASSERT_MES_AND_THROW(message) {LOG_ERROR(message); std::stringstream ss; ss << message; throw tools::runtime_error(ss.str());}
|
||||
#define CHECK_AND_ASSERT_THROW_MES(expr, message) {if(!(expr)) ASSERT_MES_AND_THROW(message);}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue