Skip to content

Commit

Permalink
[FIXED] Incorrect stopErr used
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonberrutti committed Mar 18, 2024
1 parent 6dfefd9 commit dd3a093
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 dd3a093

Please sign in to comment.