mirror of https://github.com/schollz/croc.git
Better error handling
This commit is contained in:
parent
0f5b52ff35
commit
79c81a3c5d
|
@ -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…
Reference in New Issue