From 393ab08135a13eeb65c35328b434a4cafe7eb689 Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Sat, 18 Feb 2023 23:15:00 +0100 Subject: [PATCH] Show error type with debug format --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index f17f6ff..89491c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,8 +35,8 @@ enum HLQueryError { impl Display for HLQueryError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - IOError(e) => write!(f, "{}", e), - A2SError(e) => write!(f, "{}", e) + IOError(e) => write!(f, "{:?}", e), + A2SError(e) => write!(f, "{:?}", e) } } } -- 2.34.1