Clarify error message

This commit is contained in:
Feoramund
2024-06-20 15:27:06 -04:00
parent 99c955d124
commit 585747bbbf

View File

@@ -155,7 +155,7 @@ header :: proc(tbl: ^Table, values: ..any, loc := #caller_location) {
row :: proc(tbl: ^Table, values: ..any, loc := #caller_location) {
if tbl.nr_cols == 0 {
if len(values) == 0 {
panic("Cannot create row without values unless knowing amount of columns in advance")
panic("Cannot create empty row unless the number of columns is known in advance")
} else {
tbl.nr_cols = len(values)
}