Skip to content

Commit

Permalink
feat: handle invalid registrar param
Browse files Browse the repository at this point in the history
  • Loading branch information
davidramiro committed Feb 21, 2023
1 parent f769357 commit f3b0ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func HandleUpdateRequest(c echo.Context) error {
if err != nil {
return c.String(err.Code, err.Message)
}
} else {
return c.String(http.StatusBadRequest, "missing or invalid registrar")
}

successfulUpdates++
Expand Down

0 comments on commit f3b0ec3

Please # to comment.