From c538be438596bc9907d477e5c5946c08db4622bb Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 24 Apr 2022 11:24:15 +0200 Subject: [PATCH] Fix error message spelling --- pkg/config/config.go | 2 +- pkg/config/config_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 85f8d7b..8899708 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -83,7 +83,7 @@ func (s *Settings) UnmarshalYAML(n *yaml.Node) error { } if data.ValidityYears.Root < data.ValidityYears.Intermediary { - return SettingsError{"validity of root CA certificates must be equal or greater than those if" + + return SettingsError{"validity of root CA certificates must be equal or greater than those of" + " intermediary CA certificates"} } diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 4b1def2..9f34556 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -746,8 +746,8 @@ url-patterns: crl: http://crl.example.org/%s.crl issuer: http://issuer.example.org/%s.crt `, - errMsg: "invalid Settings validity of root CA certificates must be equal or greater than " + - "those of intermediary CA certificates", + errMsg: "invalid Settings validity of root CA certificates must be equal or greater than" + + " those of intermediary CA certificates", }, "no OCSP pattern": { yaml: `