Skip to content

Commit 914c9b5

Browse files
bluestreak01claude
andcommitted
fix(config): list on/off in getBool's expected-values error message
ConfigView.getBool accepts true/false and on/off, but its invalid-value error read "(expected true, false)", under-reporting the accepted forms (e.g. lazy_connect=on is valid yet the message implies otherwise). List all four, matching getBoolOnOff's convention of naming exactly what it accepts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 98fff9a commit 914c9b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/io/questdb/client/impl/ConfigView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public boolean getBool(String key, boolean dflt) {
111111
if ("false".equals(v) || "off".equals(v)) {
112112
return false;
113113
}
114-
throw new IllegalArgumentException("invalid " + key + ": " + v + " (expected true, false)");
114+
throw new IllegalArgumentException("invalid " + key + ": " + v + " (expected true, false, on, off)");
115115
}
116116

117117
public boolean getBoolOnOff(String key, boolean dflt) {

0 commit comments

Comments
 (0)