Use appropriate error when NewCustomLinks fails

pull/1660/head
Jared Scheib 2017-06-26 15:44:56 -05:00
parent 6dedf77add
commit a723ef8ae1
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (a *AllRoutes) ServeHTTP(w http.ResponseWriter, r *http.Request) {
customLinks, err := NewCustomLinks(a.CustomLinks)
if err != nil {
msg := fmt.Sprintf("Invalid CustomLinks input: %v", customLinks)
Error(w, http.StatusUnprocessableEntity, msg, a.Logger)
Error(w, http.StatusInternalServerError, msg, a.Logger)
return
}