Pass through CustomLinks error message directly

pull/1660/head
Jared Scheib 2017-06-26 18:02:22 -05:00
parent c89b7c3bb6
commit 578bf89c97
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package server
import (
"fmt"
"net/http"
"github.com/influxdata/chronograf"
@ -55,8 +54,7 @@ type AllRoutes struct {
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.StatusInternalServerError, msg, a.Logger)
Error(w, http.StatusInternalServerError, err.Error(), a.Logger)
return
}