From 0a3c1dcb8c4c6cdc881dfa7a30237e38fe7bd39f Mon Sep 17 00:00:00 2001 From: Rousan Ali Date: Sun, 17 May 2020 22:24:12 +0530 Subject: [PATCH 1/2] Update error display message --- src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index 3669da3..43c0123 100644 --- a/src/error.rs +++ b/src/error.rs @@ -26,7 +26,7 @@ pub enum Error { IncompleteHeaders, /// Failed to read headers. - #[display(fmt = "Failed to read headers")] + #[display(fmt = "Failed to read headers: {}", _0)] ReadHeaderFailed(BoxError), /// Failed to decode the field's raw header name to [`HeaderName`](https://docs.rs/http/0.2.1/http/header/struct.HeaderName.html) type. @@ -54,7 +54,7 @@ pub enum Error { StreamSizeExceeded { limit: usize }, /// Stream read failed. - #[display(fmt = "Stream read failed")] + #[display(fmt = "Stream read failed: {}", _0)] StreamReadFailed(BoxError), /// Failed to lock the multipart shared state for any changes. @@ -75,7 +75,7 @@ pub enum Error { /// Failed to decode the field data as `JSON` in [`field.json()`](./struct.Field.html#method.json) method. #[cfg(feature = "json")] - #[display(fmt = "Failed to decode the field data as JSON")] + #[display(fmt = "Failed to decode the field data as JSON: {}", _0)] DecodeJson(BoxError), #[doc(hidden)] From 1bcf21af93a141b8780c46395e717e959c946399 Mon Sep 17 00:00:00 2001 From: Rousan Ali Date: Sun, 17 May 2020 22:25:23 +0530 Subject: [PATCH 2/2] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7ee154c..c5d57be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multer" -version = "1.1.0" +version = "1.1.1" description = "An async parser for `multipart/form-data` content-type in Rust." homepage = "https://github.com/rousan/multer-rs" repository = "https://github.com/rousan/multer-rs"