better error reporting
authorEugene Crosser <crosser@average.org>
Sat, 19 Apr 2014 10:40:25 +0000 (14:40 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 19 Apr 2014 10:40:25 +0000 (14:40 +0400)
PowerDns.hs

index 76d0b029070f213b0d40f18cdc5e370993eae75c..cbc9fb5df94babc05c9f715b7e6779aa0878e276 100644 (file)
@@ -81,7 +81,7 @@ pdnsParse ver s =
       "AXFR":x:[]               -> Right (PdnsRequestAXFR (getInt x))
       "Q":qn:"IN":qt:id:rip:xs  -> case rrType qt of
                                      RRTypeError e ->
       "AXFR":x:[]               -> Right (PdnsRequestAXFR (getInt x))
       "Q":qn:"IN":qt:id:rip:xs  -> case rrType qt of
                                      RRTypeError e ->
-                                       Left $ "PDNS Request: " ++ e
+                                       Left $ "PDNS Request: " ++ (show qt)
                                      rt ->
                                        Right (PdnsRequestQ
                                             { qName = qn
                                      rt ->
                                        Right (PdnsRequestQ
                                             { qName = qn