Print stack trace upon exceptions

Useful for debugging users' logs
This commit is contained in:
moneromooo-monero 2016-03-19 21:48:36 +00:00
parent d7fb03fc97
commit fff238ec94
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
43 changed files with 259 additions and 63 deletions

View file

@ -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);
}
}