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:
parent
13b7f4afcb
commit
1ced0aa532
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue