summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-06-28 09:27:57 -0700
committerGrant Limberg <[email protected]>2022-06-28 09:28:35 -0700
commit0d7197381abf5b6c48878bb346340d60cab911a5 (patch)
tree9f39237ff19cd377e50c241d5ab261b3828d90fd /controller
parent651f45fe29155c462f4e56dd74f4a347f6861d0d (diff)
exit here on error
Diffstat (limited to 'controller')
-rw-r--r--controller/PostgreSQL.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index cf154ecf..47324514 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -951,6 +951,7 @@ void PostgreSQL::initializeMembers()
}
} catch (sw::redis::Error &e) {
fprintf(stderr, "ERROR: Error initializing members (redis): %s\n", e.what());
+ exit(-1);
} catch (std::exception &e) {
fprintf(stderr, "ERROR: Error initializing member: %s-%s %s\n", networkId.c_str(), memberId.c_str(), e.what());
exit(-1);