diff options
author | Francis Lavoie <lavofr@gmail.com> | 2023-02-25 19:34:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 00:34:27 +0000 |
commit | 960150bb034dc9a549ee7289b1a4eb4abafeb30a (patch) | |
tree | a3608546db0b154a75afc3dae2d52d44b92ceac9 /modules/caddyhttp/celmatcher.go | |
parent | 9e6919550be5689628d0020ec14e90ea6f527716 (diff) |
caddyfile: Implement heredoc support (#5385)
Diffstat (limited to 'modules/caddyhttp/celmatcher.go')
-rw-r--r-- | modules/caddyhttp/celmatcher.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/caddyhttp/celmatcher.go b/modules/caddyhttp/celmatcher.go index 60ca00b..c4635e2 100644 --- a/modules/caddyhttp/celmatcher.go +++ b/modules/caddyhttp/celmatcher.go @@ -191,15 +191,17 @@ func (m MatchExpression) caddyPlaceholderFunc(lhs, rhs ref.Val) ref.Val { celReq, ok := lhs.(celHTTPRequest) if !ok { return types.NewErr( - "invalid request of type '%v' to "+placeholderFuncName+"(request, placeholderVarName)", + "invalid request of type '%v' to %s(request, placeholderVarName)", lhs.Type(), + placeholderFuncName, ) } phStr, ok := rhs.(types.String) if !ok { return types.NewErr( - "invalid placeholder variable name of type '%v' to "+placeholderFuncName+"(request, placeholderVarName)", + "invalid placeholder variable name of type '%v' to %s(request, placeholderVarName)", rhs.Type(), + placeholderFuncName, ) } |