From 531fa634a26a47d3e19dcb39a0975dc8d7bda168 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Tue, 30 Apr 2024 22:02:22 +0800 Subject: [PATCH] feature: add logs for cli execution error --- cli/test/helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/test/helper.go b/cli/test/helper.go index 995367c4b..470473368 100644 --- a/cli/test/helper.go +++ b/cli/test/helper.go @@ -38,6 +38,7 @@ func ExecuteCliCommand(command string, args ...string) (string, error) { cmd := exec.Command(command, args...) output, err := cmd.CombinedOutput() if err != nil { + fmt.Println(fmt.Sprint(err) + ": " + string(output)) return strings.TrimSpace(string(output)), err } return strings.TrimSpace(string(output)), nil