Skip to content

Commit

Permalink
Print git errors (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrohnhofen authored Jan 21, 2022
1 parent 9457053 commit 986f7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions module/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,5 @@ func (m GitModule) tryRunGitCommand(args ...string) (string, string, error) {
cmd.Stdout = &stdout
cmd.Dir = m.path
err := cmd.Run()
if err != nil {
return "", "", err
}
return strings.TrimSuffix(stdout.String(), "\n"), strings.TrimSuffix(stderr.String(), "\n"), nil
return strings.TrimSuffix(stdout.String(), "\n"), strings.TrimSuffix(stderr.String(), "\n"), err
}
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"gopkg.in/yaml.v2"
)

var DbtVersion = []uint{1, 2, 4}
var DbtVersion = []uint{1, 2, 5}

// ModuleFileName is the name of the file describing each module.
const ModuleFileName = "MODULE"
Expand Down

0 comments on commit 986f7a6

Please sign in to comment.