Skip to content

Commit

Permalink
[FOLD] Print exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
bachase committed Dec 20, 2017
1 parent d1ef7b0 commit 890a56f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ripple/app/main/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <fstream>
#include <sstream>
#include <iostream>
#include <cstring>

namespace ripple {

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 890a56f

Please sign in to comment.