Skip to content

Commit

Permalink
fix: consistent error message
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 authored Apr 9, 2024
1 parent 5879f67 commit 80064eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ func LoadConfigFS(fsys afero.Fs) error {
return errors.New("Missing required field in config: auth.hook.send_email.uri")
}
if !strings.HasPrefix(strings.ToLower(Config.Auth.Hook.SendEmail.URI), "http") {
return errors.New("Invalid HTTP hook config: auth.hook.send_email.uri should be a http or https URL")
return errors.New("Invalid HTTP hook config: auth.hook.send_email.uri should be a HTTP or HTTPS URL")
}
if Config.Auth.Hook.SendEmail.HTTPHookSecrets == "" {
return errors.New("Missing required field in config: auth.hook.send_email.secrets")
Expand Down

0 comments on commit 80064eb

Please sign in to comment.