Show error type with debug format
authorMegaBrutal <megabrutal+github@megabrutal.com>
Sat, 18 Feb 2023 22:15:00 +0000 (23:15 +0100)
committerMegaBrutal <megabrutal+github@megabrutal.com>
Sat, 18 Feb 2023 22:15:00 +0000 (23:15 +0100)
src/main.rs

index f17f6ffb92204d7597fd868e9058a14fbdb381aa..89491c46f78fb9cb78765d1c4b659fdcbf4840f2 100644 (file)
@@ -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)
         }
     }
 }