From: Joey Hess Date: Fri, 9 Dec 2016 16:35:45 +0000 (-0400) Subject: improve warning on connection loss X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~281^2~33 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca1bcdcd7c028ed4391d372fcde6677a10d5e7ea;p=git-annex.git improve warning on connection loss --- diff --git a/Remote/P2P.hs b/Remote/P2P.hs index 0813098f18..f0848f8318 100644 --- 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)