fix(config): Return error on order set as string (#12880)

This commit is contained in:
Joshua Powers 2023-03-21 09:37:57 -06:00 committed by GitHub
parent e4cf2904ca
commit f1da63da44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1611,6 +1611,8 @@ func (c *Config) getFieldInt64(tbl *ast.Table, fieldName string, target *int64)
return
}
*target = i
} else {
c.addError(tbl, fmt.Errorf("found unexpected format while parsing %q, expecting int", fieldName))
}
}
}