summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/celmatcher_test.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-06-08 16:42:24 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-06-08 16:42:24 -0600
commit1498132ea3c4f01d3be41812dbd02364cb77d263 (patch)
treef37d4ec6ed66c5479c6fcf00b14d62b216d7d93a /modules/caddyhttp/celmatcher_test.go
parent7f9b1f43c9f8c7d0f4ca9271090cae92103232c7 (diff)
caddyhttp: Log error from CEL evaluation (fix #4832)
Diffstat (limited to 'modules/caddyhttp/celmatcher_test.go')
-rw-r--r--modules/caddyhttp/celmatcher_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/celmatcher_test.go b/modules/caddyhttp/celmatcher_test.go
index a78eb5a..d71fc42 100644
--- a/modules/caddyhttp/celmatcher_test.go
+++ b/modules/caddyhttp/celmatcher_test.go
@@ -116,7 +116,7 @@ eqp31wM9il1n+guTNyxJd+FzVAH+hCZE5K+tCgVDdVFUlDEHHbS/wqb2PSIoouLV
}
if tt.expression.Match(req) != tt.wantResult {
- t.Errorf("MatchExpression.Match() expected to return '%t', for expression : '%s'", tt.wantResult, tt.expression)
+ t.Errorf("MatchExpression.Match() expected to return '%t', for expression : '%s'", tt.wantResult, tt.expression.Expr)
}
})