aboutsummaryrefslogtreecommitdiffstats
path: root/filedistribution
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-09-29 19:22:37 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-09-29 19:22:37 +0000
commitaac225e964150049685fbf7e62038f9059758510 (patch)
tree660f8baab08fff9207143868e39610f8ccba002f /filedistribution
parent8e56142a77181f3f09ab16b6732b8318dd89c922 (diff)
Silence connection failures.
Diffstat (limited to 'filedistribution')
-rw-r--r--filedistribution/src/apps/filedistributor/filedistributor.cpp25
1 files changed, 10 insertions, 15 deletions
diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp
index 37f8d259258..8625549dc19 100644
--- a/filedistribution/src/apps/filedistributor/filedistributor.cpp
+++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp
@@ -5,7 +5,6 @@
#include <cstdlib>
#include <boost/program_options.hpp>
-#include <boost/exception/diagnostic_information.hpp>
#include <vespa/fastos/app.h>
#include <vespa/config-zookeepers.h>
@@ -288,32 +287,28 @@ FileDistributorApplication::Main() {
EV_STOPPING(programName, "Clean exit");
return 0;
} catch(const FileDoesNotExistException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 1;
} catch(const ZKNodeDoesNotExistsException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 2;
} catch(const ZKSessionExpired & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 3;
} catch(const config::ConfigTimeoutException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 4;
} catch(const vespalib::PortListenException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 5;
} catch(const ZKConnectionLossException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 6;
+ } catch(const ZKFailedConnecting & e) {
+ EV_STOPPING(programName, e.what());
+ return 7;
} catch(const ZKGenericException & e) {
- std::string s = boost::diagnostic_information(e);
- EV_STOPPING(programName, s.c_str());
+ EV_STOPPING(programName, e.what());
return 99;
}
}