From 8dd5585c53d76897746b5e9fc2c4083613931d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Sun, 10 Jan 2021 05:42:01 +0100 Subject: [PATCH] errors: Fix instance not being printed. (#1327) The condition so far printed it only when it was known to be empty. --- acme/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme/errors.go b/acme/errors.go index f9adb317..fc68d419 100644 --- a/acme/errors.go +++ b/acme/errors.go @@ -44,7 +44,7 @@ func (p ProblemDetails) Error() string { msg += fmt.Sprintf(", problem: %q :: %s", sub.Type, sub.Detail) } - if len(p.Instance) == 0 { + if len(p.Instance) != 0 { msg += ", url: " + p.Instance }