mirror of
https://github.com/monero-project/monero.git
synced 2025-12-30 14:40:48 -08:00
Print stack trace upon exceptions
Useful for debugging users' logs
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#include "common/exception.h"
|
||||
#include "daemonizer/posix_fork.h"
|
||||
#include "misc_log_ex.h"
|
||||
|
||||
@@ -20,7 +21,7 @@ namespace {
|
||||
void quit(std::string const & message)
|
||||
{
|
||||
LOG_ERROR(message);
|
||||
throw std::runtime_error(message);
|
||||
throw tools::runtime_error(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user