From 3a9d03a46f7ec9309e00624e2695bd63a788c718 Mon Sep 17 00:00:00 2001 From: Shane C Date: Thu, 4 Jul 2024 16:46:29 -0400 Subject: [PATCH] testing exit codes --- linux/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/run.go b/linux/run.go index f214f2e..722e508 100644 --- a/linux/run.go +++ b/linux/run.go @@ -40,6 +40,7 @@ func (cmd *LinuxCommand) Run() error { if err := command.Start(); err != nil { var exitErr *exec.ExitError if errors.As(err, &exitErr) { + fmt.Println(exitErr.ExitCode()) if exitErr.ExitCode() == 127 { return ErrCommandNotFound } else { @@ -51,6 +52,7 @@ func (cmd *LinuxCommand) Run() error { if err := command.Start(); err != nil { var exitErr *exec.ExitError if errors.As(err, &exitErr) { + fmt.Println(exitErr.ExitCode()) if exitErr.ExitCode() == 127 { return ErrCommandNotFound } else {