summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dhall/src/binary.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/dhall/src/binary.rs b/dhall/src/binary.rs
index eb96da2..235a55b 100644
--- a/dhall/src/binary.rs
+++ b/dhall/src/binary.rs
@@ -323,13 +323,9 @@ fn cbor_value_to_dhall(data: &cbor::Value) -> Result<ParsedExpr, DecodeError> {
let y = cbor_value_to_dhall(&y)?;
Annot(x, y)
}
- [U64(t), ..] => Err(DecodeError::WrongFormatError(format!(
- "unknown tag: {}",
- t
- )))?,
- _ => Err(DecodeError::WrongFormatError("array".to_owned()))?,
+ _ => Err(DecodeError::WrongFormatError(format!("{:?}", data)))?,
},
- _ => Err(DecodeError::WrongFormatError("unknown type".to_owned()))?,
+ _ => Err(DecodeError::WrongFormatError(format!("{:?}", data)))?,
}))
}