chiark / gitweb /
config: Better printing of wrong section error
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Aug 2021 16:54:18 +0000 (17:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Aug 2021 18:10:04 +0000 (19:10 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs

index 92fef75552a82d296e5b584b86f58c5b75fd2798..4e9c710ecc899b468f62963099e9d0dee8c5fd5d 100644 (file)
@@ -258,7 +258,7 @@ impl Aggregate {
         )?;
         if ! skl.contains(&sn) {
           throw!(anyhow!("configuration key {:?} not applicable \
-                          in this kind of section {:?}", key, &sn))
+                          in this kind of section: {}", key, &sn))
         }
       }