Errors should not start with caps

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

Signed-off-by: Sabith <sabithksme@gmail.com>
This commit is contained in:
Sabith K Soopy 2019-04-29 07:33:10 -07:00 committed by Sabith
parent 6ccb96ff74
commit 6769a3b18e
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ func (c Config) Validate() error {
} }
} }
if len(checkErrors) != 0 { 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 return nil
} }

View File

@ -47,7 +47,7 @@ func TestInvalidConfiguration(t *testing.T) {
t.Fatal("this configuration should be invalid") t.Fatal("this configuration should be invalid")
} }
got := err.Error() got := err.Error()
wanted := `Invalid Config: wanted := `invalid Config:
- no issuer specified in config file - no issuer specified in config file
- no storage supplied in config file - no storage supplied in config file
- must supply a HTTP/HTTPS address to listen on` - must supply a HTTP/HTTPS address to listen on`