aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-31 17:09:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-31 17:09:00 +0000
commit1e07110a7aabf7374f1b1197a1fbbac614acb386 (patch)
treef6cf40d5849796c19f27792390e979539bace840 /src/daemon/daemon.cpp
parentMerge pull request #584 (diff)
downloadmonero-1e07110a7aabf7374f1b1197a1fbbac614acb386.tar.xz
Nicer looking exit when blockchain.bin is found
Do not print the exception message, and write the important bit in red, since people will only read the last line otherwise.
Diffstat (limited to '')
-rw-r--r--src/daemon/daemon.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 6093ecdf8..ed6a66722 100644
--- a/src/daemon/daemon.cpp
+++ b/src/daemon/daemon.cpp
@@ -118,7 +118,8 @@ bool t_daemon::run(bool interactive)
try
{
- mp_internals->core.run();
+ if (!mp_internals->core.run())
+ return false;
mp_internals->rpc.run();
daemonize::t_command_server* rpc_commands;