From: Ian Jackson Date: Sat, 7 Aug 2021 16:54:18 +0000 (+0100) Subject: config: Better printing of wrong section error X-Git-Tag: hippotat/1.0.0~280 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=1f922d4f5fcecf9e9345435018850bb7da5b6235;p=hippotat.git config: Better printing of wrong section error Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 92fef75..4e9c710 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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)) } }