Skip to content
Snippets Groups Projects
Commit bff44291 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

default does not print the error

parent 3afecc46
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ func HttpError(w http.ResponseWriter, err error) {
case "404":
http.Error(w, "Not found: " + err.Error(), http.StatusNotFound)
default:
http.Error(w, "Error occurred: " + err.Error(), http.StatusInternalServerError)
http.Error(w, "Error occurred", http.StatusInternalServerError)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment