summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-14 00:16:36 -0400
committerpommicket <pommicket@gmail.com>2025-09-14 00:16:36 -0400
commitfff69a4da3a5b4f8edc11714fa61a25c8c9a9242 (patch)
treead607e69025d42b01f698fb32ac9bfc899b03c39
parent223b87b08ffff33138aabb88da9d4e2f9229c6e1 (diff)
Better UnmatchedLeftBrace message
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2c1d3dd..eeaa750 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -146,7 +146,9 @@ impl fmt::Display for Error {
f,
"{location}: value {value:?} should be off/false/no or on/true/yes",
),
- Self::UnmatchedLeftBrace(location) => write!(f, "{location}: [ has no matching ]"),
+ Self::UnmatchedLeftBrace(location) => {
+ write!(f, "{location}: Line starting with [ must end with ]")
+ }
Self::InvalidKey(location, key) => {
write!(f, "{location}: invalid key {key:?}")
}