Skip to content

Commit

Permalink
chore: update error message format.
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Jun 27, 2022
1 parent e2476da commit e055a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func NewWorker(opts ...Option) *Worker {

w.client, err = nats.Connect(w.opts.addr)
if err != nil {
panic(err)
w.opts.logger.Fatal("can't connect to nats:", err)
}

if err := w.startConsumer(); err != nil {
panic(err)
w.opts.logger.Fatal("can't start consumer:", err)
}

return w
Expand Down

0 comments on commit e055a76

Please sign in to comment.