Skip to content

Commit

Permalink
fix: stop multi writer at end
Browse files Browse the repository at this point in the history
The multi-printer must be stopped after errgroup.
  • Loading branch information
faabiosr committed May 10, 2024
1 parent e479306 commit 2a04847
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/bump.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ var bumpCmd = &cli.Command{
})
}

_, _ = multi.Stop()
if err := g.Wait(); err != nil {
return err
}

return g.Wait()
_, err = multi.Stop()
return err
},
}

0 comments on commit 2a04847

Please sign in to comment.