X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=pdns-pipe-nmc.hs;h=ed5d47c4a929723e42dbd57716c2c1fe4e9db169;hp=3b5ddf671dff351b6d3f9643ccaccf73614640ea;hb=13af223171039fef454aa6a5be8e96ffb92f7628;hpb=0e8f5d8b8144d5fa8e79c1d46e1100ea36556cf9 diff --git a/pdns-pipe-nmc.hs b/pdns-pipe-nmc.hs index 3b5ddf6..ed5d47c 100644 --- a/pdns-pipe-nmc.hs +++ b/pdns-pipe-nmc.hs @@ -45,7 +45,7 @@ qRsp rsp = case parseJsonRpc (responseBody rsp) :: Either JsonRpcError NmcRes of Left jerr -> case (jrpcErrCode jerr) of - -4 -> Right "" + -4 -> Right "{}" -- this is how non-existent entry is returned _ -> Left $ "JsonRpc error response: " ++ (show jerr) Right jrsp -> Right $ resValue jrsp