mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Better error handling
This commit is contained in:
parent
0f5b52ff35
commit
79c81a3c5d
1 changed files with 1 additions and 0 deletions
|
@ -389,6 +389,7 @@ func (c *Connection) receiveFile(id int, connection net.Conn) error {
|
|||
logger.Debugf("chunk size: %d", chunkSize)
|
||||
|
||||
os.Remove(c.File.Name + ".enc." + strconv.Itoa(id))
|
||||
log.Debug("Making " + c.File.Name + ".enc." + strconv.Itoa(id))
|
||||
newFile, err := os.Create(c.File.Name + ".enc." + strconv.Itoa(id))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue