Skip to content

Commit

Permalink
std.{any,all}: call std.format correctly for errors (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashi009 authored Nov 13, 2023
1 parent 3cd02cb commit 9e94559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/std.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ limitations under the License.
true
else
local e = arr[idx];
assert std.isBoolean(e) : std.format('element "%s" of type %s is not a boolean', e, std.type(e));
assert std.isBoolean(e) : 'element "%s" of type %s is not a boolean' % [e, std.type(e)];
if !e then
false
else
Expand All @@ -1669,7 +1669,7 @@ limitations under the License.
false
else
local e = arr[idx];
assert std.isBoolean(e) : std.format('element "%s" of type %s is not a boolean', e, std.type(e));
assert std.isBoolean(e) : 'element "%s" of type %s is not a boolean' % [e, std.type(e)];
if e then
true
else
Expand Down

0 comments on commit 9e94559

Please sign in to comment.