Refuse a calc over digits(0) or a repeat of 0, name an option's wrong kind as JSON does, type the name scope kinds, and compile only from a jsonvalue.Value

This commit is contained in:
2026-10-08 00:02:07 +02:00
committed by Lillem4n
parent ba2ae41ffe
commit 97e72988b1
13 changed files with 106 additions and 55 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ func readTableOptions(m map[string]any) (tableOptionValues, error) {
}
s, isString := v.(string)
if !isString {
return o, fmt.Errorf("%s must be a string, got %T", k, v)
return o, fmt.Errorf("%s must be a string, not %s", k, jsonKind(v))
}
if k != "format" && s == "" {
return o, fmt.Errorf("%s names a column, so it cannot be empty; drop it", k)