add debug statement

This commit is contained in:
Zack Scholl 2018-04-22 06:02:42 -07:00
parent 13b7f4afcb
commit 1ced0aa532
1 changed files with 3 additions and 2 deletions

View File

@ -535,11 +535,12 @@ func (c *Connection) runClient() error {
fmt.Print("\ndecompressing folder")
log.Debug("untarring " + c.File.Name)
err := tarinator.UnTarinate(c.Path, path.Join(c.Path, c.File.Name))
if err != nil {
log.Debug("problem untarring: " + err.Error())
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))
if err != nil {
return err