Skip to content

Commit

Permalink
Fix case when invalid route was called.
Browse files Browse the repository at this point in the history
  • Loading branch information
cscatolini committed Apr 12, 2018
1 parent 3525030 commit c577a40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (h *HandlerService) processMessage(a *agent.Agent, msg *message.Message) {
r, err := route.Decode(msg.Route)
if err != nil {
log.Error(err.Error())
a.AnswerWithError(msg.ID, err)
return
}

Expand Down

0 comments on commit c577a40

Please sign in to comment.