From fbb8e02fb6fdf103df9f0d5f6ce4ae76c86a0f6c Mon Sep 17 00:00:00 2001 From: Bachue Zhou Date: Tue, 8 Sep 2020 21:47:14 +0800 Subject: [PATCH] Fix the bug that cvt() could get rid of extra error message --- src/easy/handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/easy/handler.rs b/src/easy/handler.rs index 419819571c..c70f2588d6 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -3011,7 +3011,7 @@ impl Easy2 { if let Some(msg) = self.take_error_buf() { err.set_extra(msg); } - Err(Error::new(rc)) + Err(err) } }