Change malformed_payload error

This commit is contained in:
many 2021-10-25 14:09:24 +02:00
parent 8ec0c4c913
commit 61c15b69fb
No known key found for this signature in database
GPG key ID: 2CEF23B75189EACA
4 changed files with 49 additions and 34 deletions

View file

@ -27,7 +27,7 @@ impl fmt::Display for PayloadType {
pub enum DocumentFormatError {
#[error("Internal error: {0}")]
Internal(Box<dyn std::error::Error + Send + Sync + 'static>),
#[error("{0}. The {1} payload provided is malformed.")]
#[error("The {1} payload provided is malformed. {0}.")]
MalformedPayload(
Box<dyn std::error::Error + Send + Sync + 'static>,
PayloadType,