add descriptive error

This commit is contained in:
Simon Gardling 2022-04-26 09:13:46 -04:00
parent 03e7105ee9
commit fcfab3cf1c

View File

@ -208,7 +208,7 @@ impl SerdeValueHelper {
fn parse_multiline(&self, key: &str) -> String {
(&self.value[key])
.as_array()
.unwrap()
.expect("Cannot call as_array")
.iter()
.map(|ele| ele.as_str().unwrap())
.fold(String::new(), |s, l| s + l + "\n")