aboutsummaryrefslogtreecommitdiff
path: root/src/daemonizer/posix_fork.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-20 21:25:24 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-20 21:25:24 +0200
commitb72f143724f07c52c6688d792ebd20f25f104d37 (patch)
treed138554a5a13e650f45f3d8d4b8bd0c9c1748235 /src/daemonizer/posix_fork.cpp
parentd7fb03fc97794febeb29f1983e313e1b9d1d85e6 (diff)
parentfff238ec94ac6d45fc18c315d7bc590ddfaad63d (diff)
downloadmonzero-core-b72f143724f07c52c6688d792ebd20f25f104d37.tar.gz
monzero-core-b72f143724f07c52c6688d792ebd20f25f104d37.tar.xz
monzero-core-b72f143724f07c52c6688d792ebd20f25f104d37.zip
Merge pull request #733
fff238e Print stack trace upon exceptions (moneromooo-monero)
Diffstat (limited to 'src/daemonizer/posix_fork.cpp')
-rw-r--r--src/daemonizer/posix_fork.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemonizer/posix_fork.cpp b/src/daemonizer/posix_fork.cpp
index c068912ec..84ff88869 100644
--- a/src/daemonizer/posix_fork.cpp
+++ b/src/daemonizer/posix_fork.cpp
@@ -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);
}
}