From c42302d3de61b653a134be87149e8fc4892b59dd Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sat, 21 Oct 2017 14:29:48 -0600 Subject: [PATCH] More errors --- connect.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connect.go b/connect.go index 4d910fa0..0740d6b0 100644 --- a/connect.go +++ b/connect.go @@ -292,7 +292,9 @@ func (c *Connection) runClient() error { if id == 0 { fmt.Printf("\n\nReceiving (<-%s)..\n", sendersAddress) } - c.receiveFile(id, connection) + if err := c.receiveFile(id, connection); err != nil { + log.Error(errors.Wrap(err, "Problem receiving the file: ")) + } } } }