From 80064ebd76b1cc330bf442f7eb7a405d961cddbe Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Tue, 9 Apr 2024 19:39:14 +0800 Subject: [PATCH] fix: consistent error message --- internal/utils/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/config.go b/internal/utils/config.go index 9e63eac12..fdfbc28d7 100644 --- a/internal/utils/config.go +++ b/internal/utils/config.go @@ -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")