MCPcopy Index your code
hub / github.com/php/frankenphp / wrongSubDirectiveError

Function wrongSubDirectiveError

caddy/caddy.go:33–35  ·  view source on GitHub ↗

wrongSubDirectiveError returns a nice error message.

(module string, allowedDirectives string, wrongValue string)

Source from the content-addressed store, hash-verified

31
32// wrongSubDirectiveError returns a nice error message.
33func wrongSubDirectiveError(module string, allowedDirectives string, wrongValue string) error {
34 return fmt.Errorf("unknown %q subdirective: %s (allowed directives are: %s)", module, wrongValue, allowedDirectives)
35}

Callers 4

unmarshalHotReloadMethod · 0.85
UnmarshalCaddyfileMethod · 0.85
UnmarshalCaddyfileMethod · 0.85
unmarshalWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected