settings: add email test note

just send an announcement to yourself.
This commit is contained in:
Harvey Tindall
2025-05-13 17:31:09 +01:00
parent d710b9ad4d
commit 2d98c6cff4
3 changed files with 14 additions and 1 deletions
+7
View File
@@ -79,6 +79,13 @@ func GenericErr(status int, err error) error {
}
}
func GenericErrFromResponse(resp *http.Response, err error) error {
if resp == nil {
return ErrUnknown{code: -2}
}
return GenericErr(resp.StatusCode, err)
}
type ConfigurableTransport interface {
// SetTransport sets the http.Transport to use for requests. Can be used to set a proxy.
SetTransport(t *http.Transport)