Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feature: add logs for cli execution error

Sheen Capadngan531fa634a26a
diff --git a/cli/test/helper.go b/cli/test/helper.go
index 995367c4b1..4704733687 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