From 890a56fae8ea63956f02fb613fdcc75d1e1e71eb Mon Sep 17 00:00:00 2001 From: Brad Chase Date: Wed, 20 Dec 2017 13:54:51 -0500 Subject: [PATCH] [FOLD] Print exception message --- src/ripple/app/main/Application.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ripple/app/main/Application.cpp b/src/ripple/app/main/Application.cpp index 65525954f6d..769d92928ac 100644 --- a/src/ripple/app/main/Application.cpp +++ b/src/ripple/app/main/Application.cpp @@ -61,6 +61,7 @@ #include #include #include +#include namespace ripple { @@ -1236,8 +1237,12 @@ bool ApplicationImp::setup() } catch (std::exception const& e) { - JLOG(m_journal.fatal()) - << "Unable to setup server handler " << e.what(); + if (auto stream = m_journal.fatal()) + { + stream << "Unable to setup server handler"; + if(std::strlen(e.what()) > 0) + stream << ": " << e.what(); + } return false; } }