diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index cf154ecf2..473245140 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);