exit here on error

This commit is contained in:
Grant Limberg 2022-06-28 09:27:57 -07:00
parent 651f45fe29
commit 0d7197381a
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -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);