Skip to content

Commit

Permalink
Merge pull request #1585 from ramonberrutti/fix-stop-error
Browse files Browse the repository at this point in the history
[FIXED] micro: Incorrect stopErr used
  • Loading branch information
wallyqs authored Mar 18, 2024
2 parents 6dfefd9 + dd3a093 commit 8ba3483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micro/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func (s *service) addInternalHandler(nc *nats.Conn, verb Verb, kind, id, name st
handler(&request{msg: msg})
})
if err != nil {
if stopErr := s.Stop(); err != nil {
if stopErr := s.Stop(); stopErr != nil {
return errors.Join(err, fmt.Errorf("stopping service: %w", stopErr))
}
return err
Expand Down

0 comments on commit 8ba3483

Please sign in to comment.