ntfy-server/util/sprig/flow_control.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
177 B
Go
Raw Normal View History

2025-07-19 22:30:07 +02:00
package sprig
import "errors"
2025-07-21 11:24:58 +02:00
// fail is a function that always returns an error with the given message.
2025-07-19 22:30:07 +02:00
func fail(msg string) (string, error) {
return "", errors.New(msg)
}