forked from TrueCloudLab/lego
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:
parent
4d4061ff40
commit
8dd5585c53
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ func (p ProblemDetails) Error() string {
|
||||||
msg += fmt.Sprintf(", problem: %q :: %s", sub.Type, sub.Detail)
|
msg += fmt.Sprintf(", problem: %q :: %s", sub.Type, sub.Detail)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(p.Instance) == 0 {
|
if len(p.Instance) != 0 {
|
||||||
msg += ", url: " + p.Instance
|
msg += ", url: " + p.Instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue