tag: fix swallowed error if repository cannot be opened

This commit is contained in:
Michael Eischer
2024-09-14 18:25:29 +02:00
parent 4105e4a356
commit cab6b15603
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func runTag(ctx context.Context, opts TagOptions, gopts GlobalOptions, args []st
Verbosef("create exclusive lock for repository\n")
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, false)
if err != nil {
return nil
return err
}
defer unlock()