]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - PowerDns.hs
prevent import loops
[pdns-pipe-nmc.git] / PowerDns.hs
index e225b6229646902758e4d3e2fede5d59c28c85a3..7e2d9cc8d440a5dcdd8adf4708e6b415ab1b76c7 100644 (file)
@@ -71,7 +71,7 @@ pdnsReport err =
 pdnsOut :: Int -> String -> String -> RRType -> Either String NmcDom -> String
 pdnsOut ver id name rrtype edom =
   case edom of
 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 =
     Right dom -> foldr addLine "END\n" $ nmc2pdns name rrtype dom
       where
         addLine (nm, ty, dt) accum =