improve error message
This commit is contained in:
parent
d577d2f073
commit
061f5cfbd4
@ -111,7 +111,7 @@ lazy_static::lazy_static! {
|
|||||||
} else if path_string == "text.json" {
|
} else if path_string == "text.json" {
|
||||||
text_data = Some(SerdeValueHelper::new(str::from_utf8(&data).expect("unable to read text.json")).parse_values());
|
text_data = Some(SerdeValueHelper::new(str::from_utf8(&data).expect("unable to read text.json")).parse_values());
|
||||||
} else {
|
} else {
|
||||||
panic!("Other file {} not expected!", path_string);
|
panic!("File {} not expected!", path_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user