Update handlers.go
Changed httpError for failing to coplete order to "http.StatusBadRequest"
This commit is contained in:
parent
3f577b60a0
commit
c156f7f935
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ func (fe *frontendServer) placeOrderHandler(w http.ResponseWriter, r *http.Reque
|
||||||
Country: country},
|
Country: country},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
renderHTTPError(log, r, w, errors.Wrap(err, "failed to complete the order"), http.StatusInternalServerError)
|
renderHTTPError(log, r, w, errors.Wrap(err, "failed to complete the order"), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.WithField("order", order.GetOrder().GetOrderId()).Info("order placed")
|
log.WithField("order", order.GetOrder().GetOrderId()).Info("order placed")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue