From 22cce80e37500aca072a6e2a6de8900b67a74086 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 18:26:52 -0500 Subject: not dumber than before --- shell.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shell.go') diff --git a/shell.go b/shell.go index 6230a2b..e36e524 100644 --- a/shell.go +++ b/shell.go @@ -148,6 +148,18 @@ func (repo *Repo) RunVerbose(cmd []string) error { return nil } +func (repo *Repo) RunVerboseWithError(cmd []string) (*cmd.Status, error) { + r, err := repo.RunStrict(cmd) + log.Info("Run Error:", repo.GetGoPath(), cmd, err) + for _, line := range r.Stdout { + log.Info(line) + } + for _, line := range r.Stderr { + log.Info("STDERR:", line) + } + return r, err +} + func (repo *Repo) RunVerboseOnError(cmd []string) (*cmd.Status, error) { r, err := repo.RunStrict(cmd) if err == nil { -- cgit v1.2.3