From: Eugene Crosser Date: Sat, 19 Apr 2014 10:40:25 +0000 (+0400) Subject: better error reporting X-Git-Tag: 0.9.0.0~42 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=291b90a1ae073a9c1528a132ea14ea282dc379c1;p=pdns-pipe-nmc.git better error reporting --- diff --git a/PowerDns.hs b/PowerDns.hs index 76d0b02..cbc9fb5 100644 --- a/PowerDns.hs +++ b/PowerDns.hs @@ -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 -> - Left $ "PDNS Request: " ++ e + Left $ "PDNS Request: " ++ (show qt) rt -> Right (PdnsRequestQ { qName = qn