remove \n

This commit is contained in:
Adnan Hajdarevic 2016-09-29 20:11:20 +02:00
parent c53596df59
commit 75cf8952be

View file

@ -227,7 +227,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
if err != nil { if err != nil {
w.Header().Set("Content-Type", "text/plain; charset=utf-8") w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(http.StatusInternalServerError) w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.\n") fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.")
} else { } else {
fmt.Fprintf(w, response) fmt.Fprintf(w, response)
} }