mirror of
https://github.com/typesense/typesense.git
synced 2025-05-23 07:09:44 +08:00
Print TS version ahead of invalid configuration message.
This commit is contained in:
parent
6b418318b2
commit
e0e5d49053
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user