Skip to content

Commit

Permalink
Return err on tag Create
Browse files Browse the repository at this point in the history
  • Loading branch information
iseyer committed Feb 25, 2025
1 parent 984a37d commit ba09cec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controller/tag/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func (c *controller) Ensure(ctx context.Context, repositoryID, artifactID int64,
tag.PushTime = time.Now()

tagID, err = c.Create(ctx, tag)
if err != nil {
return err
}

attachedArtifact, err := c.artMgr.Get(ctx, tag.ArtifactID)
if err != nil {
Expand Down

0 comments on commit ba09cec

Please sign in to comment.