Print TS version ahead of invalid configuration message.

This commit is contained in:
Kishore Nallan 2023-06-13 11:10:35 +05:30
parent 6b418318b2
commit e0e5d49053

View File

@ -144,6 +144,7 @@ int main(int argc, char **argv) {
Option<bool> config_validitation = config.is_valid();
if(!config_validitation.ok()) {
std::cerr << "Typesense " << TYPESENSE_VERSION << std::endl;
std::cerr << "Invalid configuration: " << config_validitation.error() << std::endl;
std::cerr << "Command line " << options.usage() << std::endl;
std::cerr << "You can also pass these arguments as environment variables such as "