Pass through CustomLinks error message directly
parent
c89b7c3bb6
commit
578bf89c97
|
@ -1,7 +1,6 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/influxdata/chronograf"
|
"github.com/influxdata/chronograf"
|
||||||
|
@ -55,8 +54,7 @@ type AllRoutes struct {
|
||||||
func (a *AllRoutes) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (a *AllRoutes) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
customLinks, err := NewCustomLinks(a.CustomLinks)
|
customLinks, err := NewCustomLinks(a.CustomLinks)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
msg := fmt.Sprintf("Invalid CustomLinks input: %v", customLinks)
|
Error(w, http.StatusInternalServerError, err.Error(), a.Logger)
|
||||||
Error(w, http.StatusInternalServerError, msg, a.Logger)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue