add descriptive error
This commit is contained in:
parent
03e7105ee9
commit
fcfab3cf1c
@ -208,7 +208,7 @@ impl SerdeValueHelper {
|
|||||||
fn parse_multiline(&self, key: &str) -> String {
|
fn parse_multiline(&self, key: &str) -> String {
|
||||||
(&self.value[key])
|
(&self.value[key])
|
||||||
.as_array()
|
.as_array()
|
||||||
.unwrap()
|
.expect("Cannot call as_array")
|
||||||
.iter()
|
.iter()
|
||||||
.map(|ele| ele.as_str().unwrap())
|
.map(|ele| ele.as_str().unwrap())
|
||||||
.fold(String::new(), |s, l| s + l + "\n")
|
.fold(String::new(), |s, l| s + l + "\n")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user