summaryrefslogtreecommitdiff
path: root/internal/caddyscript/lib/lib.go
blob: 7853e7a0a7db1f5510fdb0a49fd5c7d50336da9f (plain)
1
2
3
4
5
6
7
8
9
10
11
package caddyscript

import (
	"fmt"

	"go.starlark.net/starlark"
)

func invalidReciever(v starlark.Value, want string) (starlark.Value, error) {
	return starlark.None, fmt.Errorf("invalid receiver: receiver set to type %v, want %v", v.Type(), want)
}