Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Config retrieval is optional at API request time.

We don't need to return an error just because we can't update.  We
have a config in use, return it.

Closes #117
  • Loading branch information...
commit db43dab60fbdc9cb23c865669a0637b318f2f94b 1 parent 4fc66fb
@dustin dustin authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 http_api.go
View
4 http_api.go
@@ -23,9 +23,7 @@ import (
func doGetConfig(w http.ResponseWriter, req *http.Request) {
err := updateConfig()
if err != nil {
- w.WriteHeader(500)
- fmt.Fprintf(w, "Error updating config: %v", err)
- return
+ log.Printf("Error updating config: %v", err)
}
w.Header().Set("Content-Type", "application/json")
Please sign in to comment.
Something went wrong with that request. Please try again.