chore: repair error messages

pull/5710/head
Pavel Zavora 2021-03-23 18:42:51 +01:00
parent 5ec7adc8c9
commit b868fedb47
1 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ func (s *Server) Serve(ctx context.Context) {
} }
if !validBasepath(s.Basepath) { if !validBasepath(s.Basepath) {
err := fmt.Errorf("Invalid basepath, must follow format \"/mybasepath\"") err := fmt.Errorf("invalid basepath, must follow format \"/mybasepath\"")
logger. logger.
WithField("component", "server"). WithField("component", "server").
WithField("basepath", "invalid"). WithField("basepath", "invalid").
@ -674,7 +674,7 @@ func (s *Server) Serve(ctx context.Context) {
logger. logger.
WithField("component", "server"). WithField("component", "server").
WithField("basepath", "invalid"). WithField("basepath", "invalid").
Error(fmt.Errorf("Failed to validate Oauth settings: %s", err)) Error(fmt.Errorf("failed to validate Oauth settings: %s", err))
return return
} }