projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d61f9
)
squelch protocol error on shutdown
author
Joey Hess
<joey@kitenet.net>
Tue, 2 Apr 2013 19:18:03 +0000
(15:18 -0400)
committer
Joey Hess
<joey@kitenet.net>
Tue, 2 Apr 2013 19:18:03 +0000
(15:18 -0400)
Command/TransferKeys.hs
patch
|
blob
|
history
diff --git
a/Command/TransferKeys.hs
b/Command/TransferKeys.hs
index 5fc993dc10aaa9619b483ded01cada22294835fa..458fb31c1051bca1bd337a4de03629d43231e361 100644
(file)
--- a/
Command/TransferKeys.hs
+++ b/
Command/TransferKeys.hs
@@
-84,8
+84,9
@@
runRequests readh writeh a = do
(TransferRequest direction remote key file)
_ -> sendresult False
go rest
- go [] = return ()
- go _ = error "transferkeys protocol error"
+ go [] = noop
+ go [""] = noop
+ go v = error $ "transferkeys protocol error: " ++ show v
readrequests = liftIO $ split fieldSep <$> hGetContents readh
sendresult b = liftIO $ do