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

add debug statement

This commit is contained in:
Zack Scholl 2018-04-22 06:02:42 -07:00
parent 13b7f4afcb
commit 1ced0aa532

View file

@ -535,11 +535,12 @@ func (c *Connection) runClient() error {
fmt.Print("\ndecompressing folder") fmt.Print("\ndecompressing folder")
log.Debug("untarring " + c.File.Name) log.Debug("untarring " + c.File.Name)
err := tarinator.UnTarinate(c.Path, path.Join(c.Path, c.File.Name)) err := tarinator.UnTarinate(c.Path, path.Join(c.Path, c.File.Name))
if err != nil { if err != nil {
log.Debug("problem untarring: " + err.Error())
return err return err
} }
// we remove the old tar.gz file // we remove the old tar.gz filels
log.Debug("removing old tar file: " + c.File.Name)
err = os.Remove(path.Join(c.Path, c.File.Name)) err = os.Remove(path.Join(c.Path, c.File.Name))
if err != nil { if err != nil {
return err return err