Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
internal/datasource: don't hide git error
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Sep 28, 2021
1 parent 4d28f53 commit 40cfae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/datasource/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ func (s *GitSource) Get(
})
if err != nil {
closer()

return "", nil, nil, status.Errorf(codes.Aborted,
"Git clone failed: %s", output.String())
"Git clone failed: %s\n\nOutput: %s", err, output.String())
}

// Checkout if we have a ref. If we don't have a ref we use the
Expand Down

0 comments on commit 40cfae5

Please sign in to comment.