From 9290ab1661edab354541759139d0b7bbcb5dfe74 Mon Sep 17 00:00:00 2001 From: Xiaoyi Date: Tue, 4 Jul 2023 14:35:07 +0800 Subject: [PATCH] std.{any,all}: call std.format correctly for errors --- stdlib/std.jsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/std.jsonnet b/stdlib/std.jsonnet index c861a4aec..a843d3a08 100644 --- a/stdlib/std.jsonnet +++ b/stdlib/std.jsonnet @@ -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 @@ -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