errors: Fix instance not being printed. (#1327)

The condition so far printed it only when it was known to be empty.
This commit is contained in:
Niklas Hambüchen 2021-01-10 05:42:01 +01:00 committed by GitHub
parent 4d4061ff40
commit 8dd5585c53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}