From 6769a3b18e37143da55dc4db21e037597ac266f2 Mon Sep 17 00:00:00 2001
From: Sabith K Soopy <sabith@ge.com>
Date: Mon, 29 Apr 2019 07:33:10 -0700
Subject: [PATCH] Errors should not start with caps

- https://github.com/dexidp/dex/pull/1264#discussion_r253264017

Signed-off-by: Sabith <sabithksme@gmail.com>
---
 cmd/dex/config.go      | 2 +-
 cmd/dex/config_test.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/dex/config.go b/cmd/dex/config.go
index 7c0e9b5e..882bfd1d 100644
--- a/cmd/dex/config.go
+++ b/cmd/dex/config.go
@@ -76,7 +76,7 @@ func (c Config) Validate() error {
 		}
 	}
 	if len(checkErrors) != 0 {
-		return fmt.Errorf("Invalid Config:\n\t-\t%s", strings.Join(checkErrors, "\n\t-\t"))
+		return fmt.Errorf("invalid Config:\n\t-\t%s", strings.Join(checkErrors, "\n\t-\t"))
 	}
 	return nil
 }
diff --git a/cmd/dex/config_test.go b/cmd/dex/config_test.go
index 90361cd6..77c4874a 100644
--- a/cmd/dex/config_test.go
+++ b/cmd/dex/config_test.go
@@ -47,7 +47,7 @@ func TestInvalidConfiguration(t *testing.T) {
 		t.Fatal("this configuration should be invalid")
 	}
 	got := err.Error()
-	wanted := `Invalid Config:
+	wanted := `invalid Config:
 	-	no issuer specified in config file
 	-	no storage supplied in config file
 	-	must supply a HTTP/HTTPS  address to listen on`
-- 
GitLab