From ff419e71f9f067df0b454f295c2ab8cdc7478c4f Mon Sep 17 00:00:00 2001 From: David Dworken Date: Thu, 21 Apr 2022 22:52:38 -0700 Subject: [PATCH] More debugging info for failing to install the update --- client/lib/lib.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/lib/lib.go b/client/lib/lib.go index a166a61..cc4758c 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -550,9 +550,11 @@ func Update() error { return fmt.Errorf("failed to chmod +x the update (out=%#v, err=%#v): %v", stdout.String(), stderr.String(), err) } cmd = exec.Command("/tmp/hishtory-client", "install") + stdout = bytes.Buffer{} + stderr = bytes.Buffer{} err = cmd.Run() if err != nil { - return fmt.Errorf("failed to update: %v", err) + return fmt.Errorf("failed to install update (out=%#v, err=%#v): %v", stdout.String(), stderr.String(), err) } fmt.Printf("Successfully updated hishtory from v0.%s to %s\n", Version, downloadData.Version) return nil