From fff69a4da3a5b4f8edc11714fa61a25c8c9a9242 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 14 Sep 2025 00:16:36 -0400 Subject: Better UnmatchedLeftBrace message --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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:?}") } -- cgit v1.2.3