diff options
| -rw-r--r-- | shell.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 { |
