From: Eugene Crosser Date: Sat, 29 Mar 2014 21:36:53 +0000 (+0400) Subject: cosmetic X-Git-Tag: 0.9.0.0~109 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=1ee19d546701efde4b4b2f2f70bedae907a5266d;p=pdns-pipe-nmc.git cosmetic --- diff --git a/PowerDns.hs b/PowerDns.hs index 165b80e..1c1e420 100644 --- a/PowerDns.hs +++ b/PowerDns.hs @@ -64,7 +64,7 @@ pdnsParse ver s = _ -> Left $ "Unparseable PDNS Request: " ++ s pdnsOut :: Int -> RRType -> Either String NmcDom -> String -pdnsOut ver _ d = - case d of +pdnsOut ver rrtype edom = + case edom of Left err -> "LOG Error: " ++ err ++ "\nFAIL\n" Right dom -> "DATA\n" ++ (show dom) ++ "\nEND\n" --FIXME diff --git a/pdns-pipe-nmc.hs b/pdns-pipe-nmc.hs index b010bac..79a17c0 100644 --- a/pdns-pipe-nmc.hs +++ b/pdns-pipe-nmc.hs @@ -55,7 +55,7 @@ qRsp rsp = -- NMC interface -descend subdom dom = dom +descend subdom dom = dom --FIXME queryNmc :: Manager -> Config -> String -> String -> IO (Either String NmcDom)