Skip to content

Commit

Permalink
Actually handle errors properly...
Browse files Browse the repository at this point in the history
  • Loading branch information
leosunmo committed Mar 2, 2023
1 parent 2801bc2 commit 4c7ef3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ func main() {
if err != nil {
if errors.Is(err, plumbing.ErrObjectNotFound) {
tag = ""
} else {
log.Fatalf("Failed to get latest tag from %s, err %s\n", path, err.Error())
}
log.Fatalf("Failed to get latest tag from %s, err %s\n", path, err.Error())
}
if count != 0 && !ignoreUncleanTag && !getBranch && !getCommit {
tag = fmt.Sprintf("%v-%v-%v",
Expand Down

0 comments on commit 4c7ef3d

Please sign in to comment.