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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user