nghttpx: Better error message when private key and certificate are missing

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-16 23:00:25 +09:00
parent e5b84fad09
commit bf5eeb831b
1 changed files with 3 additions and 2 deletions

View File

@ -2780,8 +2780,9 @@ int process_options(Config *config,
if (ssl::upstream_tls_enabled(config->conn) &&
(tlsconf.private_key_file.empty() || tlsconf.cert_file.empty())) {
print_usage(std::cerr);
LOG(FATAL) << "Too few arguments";
LOG(FATAL) << "TLS private key and certificate files are required. "
"Specify them in command-line, or in configuration file "
"using private-key-file and certificate-file options.";
return -1;
}