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:
9c5c24a
)
improve warning on connection loss
author
Joey Hess
<joeyh@joeyh.name>
Fri, 9 Dec 2016 16:35:45 +0000
(12:35 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Fri, 9 Dec 2016 16:35:45 +0000
(12:35 -0400)
Remote/P2P.hs
patch
|
blob
|
history
diff --git
a/Remote/P2P.hs
b/Remote/P2P.hs
index 0813098f18beb948047752f95cce5c02026f25cf..f0848f83180da1eeaadd7c83fbf4cba88dbac8d3 100644
(file)
--- a/
Remote/P2P.hs
+++ b/
Remote/P2P.hs
@@
-132,7
+132,7
@@
runProto' a (OpenConnection conn) = do
-- so close it.
case v of
Left e -> do
- warning
e
+ warning
$ "Lost connection to peer (" ++ e ++ ")"
liftIO $ closeConnection conn
return (ClosedConnection, Nothing)
Right r -> return (OpenConnection conn, Just r)