Skip to content

Commit b8ac272

Browse files
committed
doc: add godoc
Signed-off-by: Sandor Szücs <[email protected]>
1 parent e5f7e91 commit b8ac272

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: provider/provider.go

+4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ import (
2626
"sigs.k8s.io/external-dns/plan"
2727
)
2828

29+
// SoftError is an error, that provider will only log as error instead
30+
// of fatal. It is meant for error propagation from providers to tell
31+
// that this is a transient error.
2932
var SoftError error = errors.New("soft error")
3033

34+
// NewSoftError creates a SoftError from the given error
3135
func NewSoftError(err error) error {
3236
return errors.Join(SoftError, err)
3337
}

0 commit comments

Comments
 (0)