From 1ced0aa532337cd049a0e4a0dd4b225b2e836bad Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 22 Apr 2018 06:02:42 -0700 Subject: [PATCH] add debug statement --- connect.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connect.go b/connect.go index 59704dbd..905e3f62 100644 --- a/connect.go +++ b/connect.go @@ -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