Skip to content
Snippets Groups Projects
Commit 34ea9ae8 authored by Jared Kirschner's avatar Jared Kirschner
Browse files

http: improve UI not enabled response message

Response now clearly indicates:
- the UI is disabled
- how to enable the UI
parent a0c754d4
No related merge requests found
```release-note:improvement
http: when a user attempts to access the UI but can't because it's disabled, explain this and how to fix it
```
\ No newline at end of file
......@@ -593,7 +593,7 @@ func (s *HTTPHandlers) Index(resp http.ResponseWriter, req *http.Request) {
// Give them something helpful if there's no UI so they at least know
// what this server is.
if !s.IsUIEnabled() {
fmt.Fprint(resp, "Consul Agent")
fmt.Fprint(resp, "Consul Agent: UI disabled. To enable, set ui_config.enabled=true in the agent configuration and restart.")
return
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment