From 1606b28d144c4d824d3962231b04ebb4a1424246 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 1 Dec 2020 13:35:21 -0800 Subject: [PATCH] chain: add missing sources to SerializationError --- zebra-chain/src/serialization/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra-chain/src/serialization/error.rs b/zebra-chain/src/serialization/error.rs index dff2d7bf..00973209 100644 --- a/zebra-chain/src/serialization/error.rs +++ b/zebra-chain/src/serialization/error.rs @@ -7,14 +7,14 @@ use thiserror::Error; #[derive(Error, Debug)] pub enum SerializationError { /// An io error that prevented deserialization - #[error("unable to deserialize type")] + #[error("io error: {0}")] Io(#[from] io::Error), /// The data to be deserialized was malformed. // XXX refine errors #[error("parse error: {0}")] Parse(&'static str), /// An error caused when validating a zatoshi `Amount` - #[error("input couldn't be parsed as a zatoshi `Amount`")] + #[error("input couldn't be parsed as a zatoshi `Amount`: {source}")] Amount { /// The source error indicating how the num failed to validate #[from]