You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic(fmt.Sprintf("table %s, field %d, name cannot be empty", tableValues.Name, i))
864
+
returnfmt.Errorf("table %s, field %d, name cannot be empty", tableValues.Name, i)
859
865
}
860
866
}
861
867
// the number of entries in each field must be the same
862
868
numEntries:=len(tableValues.Fields[0].Values)
863
869
fori, field:=rangetableValues.Fields {
864
870
iflen(field.Values) !=numEntries {
865
-
panic(fmt.Sprintf("table %s, field %d, %s, number of entries must be the same for all fields, expected %d, got %d", tableValues.Name, i, field.Name, numEntries, len(field.Values)))
871
+
returnfmt.Errorf("table %s, field %d, %s, number of entries must be the same for all fields, expected %d, got %d", tableValues.Name, i, field.Name, numEntries, len(field.Values))
0 commit comments