From bf5eeb831b0522e95a02953add7b1f068d87d986 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Feb 2017 23:00:25 +0900 Subject: [PATCH] nghttpx: Better error message when private key and certificate are missing --- src/shrpx.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 6fdd7d44..091ec708 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -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; }