mirror of https://github.com/schollz/croc.git
add debug statement
This commit is contained in:
parent
13b7f4afcb
commit
1ced0aa532
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue