diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2019-09-30 12:25:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 12:25:05 +0200 |
commit | 4880906258d20814b4cbf928e4737e2a2f83923b (patch) | |
tree | 7fd979a7b8fefc16eb52feb677c0875cfdee5021 /searchcore | |
parent | 1f75ab8db33a5188423ee14068feace3b12e55ea (diff) | |
parent | c918711564ba1951b0b733d860c3d2b56bc33905 (diff) |
Merge pull request #10782 from vespa-engine/arnej/catch-network-exceptions
catch exceptions in network setup
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp b/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp index 2e097e7141f..3b3b5f412d2 100644 --- a/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp +++ b/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp @@ -216,9 +216,12 @@ public: fprintf(stderr, "Config system is not up. Verify that vespa is started."); return 3; } - - initRPC(); - + try { + initRPC(); + } catch (vespalib::Exception &e) { + fprintf(stderr, "Exception in network initialization: %s", e.what()); + return 2; + } int port = 0; std::string spec = _argv[1]; |