From e50164115b714821881da144109be11214431f73 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 13 Apr 2017 01:30:48 -0700 Subject: [PATCH] Only emit TLS disabled error on misconfig. --- lib/src/rocket.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index ac41fbdb..262d03a1 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -387,9 +387,11 @@ impl Rocket { if tls_configured && cfg!(feature = "tls") { info_!("tls: {}", White.paint("enabled")); } else { - error_!("tls: {}", White.paint("disabled")); if tls_configured { + error_!("tls: {}", White.paint("disabled")); error_!("tls is configured, but the tls feature is disabled"); + } else { + info_!("tls: {}", White.paint("disabled")); } }