We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d9fdd commit adcbd11Copy full SHA for adcbd11
crates/mdbook-core/src/config.rs
@@ -204,7 +204,7 @@ impl Config {
204
value
205
.clone()
206
.try_into()
207
- .with_context(|| "Failed to deserialize `{name}`")
+ .with_context(|| format!("Failed to deserialize `{name}`"))
208
})
209
.transpose()
210
}
@@ -1156,6 +1156,9 @@ mod tests {
1156
"#;
1157
let cfg = Config::from_str(src).unwrap();
1158
let err = cfg.get::<String>("preprocessor.foo.x").unwrap_err();
1159
- assert_eq!(err.to_string(), "Failed to deserialize `{name}`");
+ assert_eq!(
1160
+ err.to_string(),
1161
+ "Failed to deserialize `preprocessor.foo.x`"
1162
+ );
1163
1164
0 commit comments