From 51659716e0aa0a17e935cf9668563d6dda1eead7 Mon Sep 17 00:00:00 2001 From: abrand Date: Fri, 3 Jun 2016 20:02:30 -0400 Subject: [PATCH] Improved error message when TLS config is specified, but listen/redirect URL are using wrong scheme --- examples/app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app/main.go b/examples/app/main.go index 2b79ed65..71215415 100644 --- a/examples/app/main.go +++ b/examples/app/main.go @@ -80,7 +80,7 @@ func main() { useTLS := *keyFile != "" && *certFile != "" if useTLS && (redirectURLParsed.Scheme != "https" || l.Scheme != "https") { - log.Fatalf("TLS Cert File and Key File were provided. Ensure the listen and redirect URL are using HTTPS.") + log.Fatalf(`TLS Cert File and Key File were provided. Ensure listen and redirect URLs are using the "https://" scheme.`) } cc := oidc.ClientCredentials{