diff options
author | pommicket <pommicket@gmail.com> | 2025-09-14 00:16:36 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-14 00:16:36 -0400 |
commit | fff69a4da3a5b4f8edc11714fa61a25c8c9a9242 (patch) | |
tree | ad607e69025d42b01f698fb32ac9bfc899b03c39 /src/lib.rs | |
parent | 223b87b08ffff33138aabb88da9d4e2f9229c6e1 (diff) |
Better UnmatchedLeftBrace message
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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:?}") } |