From 4e65949210470bcd6142fa17dbceb5cb6ee2e910 Mon Sep 17 00:00:00 2001 From: TristonianJones Date: Mon, 18 Nov 2024 15:41:27 -0800 Subject: [PATCH] Fix format string issue --- policy/composer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/composer.go b/policy/composer.go index 84f3f6a5..8b134a36 100644 --- a/policy/composer.go +++ b/policy/composer.go @@ -80,7 +80,7 @@ func (opt *ruleComposerImpl) Optimize(ctx *cel.OptimizerContext, a *ast.AST) *as varExprs[i] = vi.expr err := ctx.ExtendEnv(cel.Variable(vi.indexVar, vi.cv.Declaration().Type())) if err != nil { - ctx.ReportErrorAtID(ruleExpr.ID(), err.Error()) + ctx.ReportErrorAtID(ruleExpr.ID(), "%s", err.Error()) } } blockExpr := ctx.NewCall("cel.@block", ctx.NewList(varExprs, []int32{}), ruleExpr)