mirror of
https://github.com/go-acme/lego.git
synced 2025-01-18 20:39:46 +02:00
websupport: simplify errors (#1924)
This commit is contained in:
parent
8d8a3c1ccd
commit
8a7fb25edc
@ -133,12 +133,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
err = internal.ParseError(resp)
|
return fmt.Errorf("websupport: %w", internal.ParseError(resp))
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("websupport: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CleanUp removes the TXT record matching the specified parameters.
|
// CleanUp removes the TXT record matching the specified parameters.
|
||||||
@ -172,12 +167,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
err = internal.ParseError(resp)
|
return fmt.Errorf("websupport: %w", internal.ParseError(resp))
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("websupport: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Timeout returns the timeout and interval to use when checking for DNS propagation.
|
// Timeout returns the timeout and interval to use when checking for DNS propagation.
|
||||||
|
Loading…
Reference in New Issue
Block a user