From: MegaBrutal <megabrutal+github@megabrutal.com>
Date: Sat, 18 Feb 2023 22:15:00 +0000 (+0100)
Subject: Show error type with debug format
X-Git-Tag: v0.2.0~2
X-Git-Url: http://git.megabrutal.com/?p=hlquery.git;a=commitdiff_plain;h=393ab08135a13eeb65c35328b434a4cafe7eb689

Show error type with debug format
---

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)
         }
     }
 }