summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go12
1 files changed, 12 insertions, 0 deletions
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 {