Skip to content

Commit

Permalink
chore: explicitly add quotes to error format (#605)
Browse files Browse the repository at this point in the history
The current format produces the output: `not all assertAll expressions evaluated to true: expression "<some-expression>" evaluated to %!q(bool=false)`. This change fixes the same.

Signed-off-by: Kumar Mallikarjuna <[email protected]>
  • Loading branch information
kumar-mallikarjuna authored Jan 29, 2025
1 parent 14bbfdb commit bba022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/expressions/cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func evaluateExpression(expr string,
}

if out.Value() != true {
return fmt.Errorf("expression %q evaluated to %q", expr, out.Value())
return fmt.Errorf("expression %q evaluated to '%v'", expr, out.Value())
}

return nil
Expand Down

0 comments on commit bba022a

Please sign in to comment.