Adding more detailed logging

This commit is contained in:
Tomasz Drwięga 2016-03-11 23:49:32 +01:00
parent c3a79c1478
commit 7cfe1d258b
1 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ impl<'a, 'view> View<'a, 'view> for Rlp<'a> where 'a: 'view {
impl <'a, 'view> Rlp<'a> where 'a: 'view {
fn view_as_val<T, R>(r: &R) -> T where R: View<'a, 'view>, T: RlpDecodable {
let res: Result<T, DecoderError> = r.as_val();
res.unwrap_or_else(|_| panic!())
res.unwrap_or_else(|e| panic!("DecodeError: {}", e))
}
/// Decode into an object