1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

More errors

This commit is contained in:
Zack Scholl 2017-10-21 14:29:48 -06:00
parent ebe14faf4c
commit c42302d3de

View file

@ -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: "))
}
}
}
}