projects
/
pdns-pipe-nmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e8f5d8
)
report 'not found' as emtpy
author
Eugene Crosser
<crosser@average.org>
Sat, 12 Apr 2014 20:33:39 +0000
(
00:33
+0400)
committer
Eugene Crosser
<crosser@average.org>
Sat, 12 Apr 2014 20:33:39 +0000
(
00:33
+0400)
pdns-pipe-nmc.hs
patch
|
blob
|
history
diff --git
a/pdns-pipe-nmc.hs
b/pdns-pipe-nmc.hs
index 3b5ddf671dff351b6d3f9643ccaccf73614640ea..ed5d47c4a929723e42dbd57716c2c1fe4e9db169 100644
(file)
--- 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