squelch protocol error on shutdown
authorJoey Hess <joey@kitenet.net>
Tue, 2 Apr 2013 19:18:03 +0000 (15:18 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 2 Apr 2013 19:18:03 +0000 (15:18 -0400)
Command/TransferKeys.hs

index 5fc993dc10aaa9619b483ded01cada22294835fa..458fb31c1051bca1bd337a4de03629d43231e361 100644 (file)
@@ -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