From 3411bb959ae3e32dde4c6d983af14ce269350443 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 22 Apr 2021 11:59:03 -0700 Subject: [PATCH] control/controlclient: fix signRegisterRequest log suppression check on Windows Fixes #1774 Signed-off-by: Brad Fitzpatrick --- control/controlclient/direct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 4337cc649..816501bd5 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -413,7 +413,7 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new // Don't log the common error types. Signatures are not usually enabled, // so these are expected. - if err != errCertificateNotConfigured && err != errNoCertStore { + if !errors.Is(err, errCertificateNotConfigured) && !errors.Is(err, errNoCertStore) { c.logf("RegisterReq sign error: %v", err) } }