From d64429a00931b86b1771c42dcfeb498d664a8249 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sun, 13 Nov 2022 10:53:38 +0100 Subject: [PATCH] fix error reporting from ITS API --- src/its_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/its_api.rs b/src/its_api.rs index 43fafee..4da46f8 100644 --- a/src/its_api.rs +++ b/src/its_api.rs @@ -7,9 +7,9 @@ pub enum Error { #[error("invalid URL")] InvalidUrl(#[from] url::ParseError), #[error("invalid response")] - InvalidResponse(reqwest::Error), + InvalidResponse(#[source] reqwest::Error), #[error("network request failed")] - Network(reqwest::Error), + Network(#[source] reqwest::Error), } /// Handler for the IT-Syndikat API.