Name the setting and value when a size setting does not parse (closes #429)
check / check (push) Failing after 19m36s

A non-numeric chunk_size or blob_size_limit failed with an error that named neither the setting nor the value. Every size setting now fails at load with its name and the quoted value, for example chunk_size: "banana" is not a size; use a number of bytes or a unit such as 10MB. A value too large for a size says so, with the setting name.

Model: opus-5-5
This commit was merged in pull request #452.
This commit is contained in:
clawbot committed 2026-11-11 06:42:45 +01:00
1 parent f6df500ba2
commit e8ab13b526
5 files changed
+214 -20

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ func TestConfigSetKeepsFileThatWouldNotLoad(t *testing.T) {
{configWithoutRecipients, "snapshots.home.paths", "/srv",
"into []string"},
{configWithoutRecipients, "chunk_size", "fast",
"invalid size format"},
`chunk_size: "fast" is not a size`},
// Values of the right type that fail validation.
{configWithoutRecipients, "compression_level", "99",
"compression_level must be between 1 and 19"},