From 2bae5b0959803a8597dcfce8b23de726dd0b8842 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 7 Nov 2014 11:48:31 -0800 Subject: [PATCH] Throw if rippled.cfg is missing a [server] section --- src/ripple/server/impl/ServerHandlerImp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ripple/server/impl/ServerHandlerImp.cpp b/src/ripple/server/impl/ServerHandlerImp.cpp index abf6f4649..6926ab968 100644 --- a/src/ripple/server/impl/ServerHandlerImp.cpp +++ b/src/ripple/server/impl/ServerHandlerImp.cpp @@ -650,8 +650,8 @@ parse_Ports (BasicConfig const& config, std::ostream& log) if (! config.exists("server")) { log << - "Missing section: [server]\n"; - return result; + "Required section [server] is missing\n"; + throw std::exception(); } ParsedPort common;