X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=PowerDns.hs;h=7e2d9cc8d440a5dcdd8adf4708e6b415ab1b76c7;hp=696b9b57af6c06fd3bd4d85349f4185a65af3a04;hb=37084c2c7ca994c3690cc8729e7849a6c7177ea4;hpb=6970cec92480e5b3ab3d82d120f5877181fa8589 diff --git a/PowerDns.hs b/PowerDns.hs index 696b9b5..7e2d9cc 100644 --- a/PowerDns.hs +++ b/PowerDns.hs @@ -5,7 +5,7 @@ module PowerDns ( RRType(..) , pdnsOut ) where -import NmcJson +import NmcDom data RRType = RRTypeSRV | RRTypeA | RRTypeAAAA | RRTypeCNAME | RRTypeDNAME | RRTypeSOA | RRTypeRP | RRTypeLOC @@ -71,7 +71,7 @@ pdnsReport err = pdnsOut :: Int -> String -> String -> RRType -> Either String NmcDom -> String pdnsOut ver id name rrtype edom = case edom of - Left err -> pdnsReport err + Left err -> pdnsReport $ err ++ " in a query for " ++ name Right dom -> foldr addLine "END\n" $ nmc2pdns name rrtype dom where addLine (nm, ty, dt) accum =