File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ limitations under the License.
660
660
local tmp = if code.fw == '*' then {
661
661
j: j + 1 ,
662
662
fw: if j >= std.length (arr) then
663
- error 'Not enough values to format: ' + std.length (arr)
663
+ error ( 'Not enough values to format: ' + std.length (arr) + ', expected at least ' + j )
664
664
else
665
665
arr[j],
666
666
} else {
@@ -670,7 +670,7 @@ limitations under the License.
670
670
local tmp2 = if code.prec == '*' then {
671
671
j: tmp.j + 1 ,
672
672
prec: if tmp.j >= std.length (arr) then
673
- error 'Not enough values to format: ' + std.length (arr)
673
+ error ( 'Not enough values to format: ' + std.length (arr) + ', expected at least ' + tmp.j )
674
674
else
675
675
arr[tmp.j],
676
676
} else {
@@ -682,7 +682,7 @@ limitations under the License.
682
682
if j2 < std.length (arr) then
683
683
arr[j2]
684
684
else
685
- error 'Not enough values to format, got ' + std.length (arr);
685
+ error ( 'Not enough values to format: ' + std.length (arr) + ', expected at least ' + j2 );
686
686
local s =
687
687
if code.ctype == '%' then
688
688
'%'
You can’t perform that action at this time.
0 commit comments