Browse Source

Errors should not start with caps

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

Signed-off-by: Sabith <sabithksme@gmail.com>
pull/1439/head
Sabith K Soopy 7 years ago committed by Sabith
parent
commit
6769a3b18e
  1. 2
      cmd/dex/config.go
  2. 2
      cmd/dex/config_test.go

2
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
}

2
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`

Loading…
Cancel
Save