Commit bff44291 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

default does not print the error

parent 3afecc46
...@@ -80,7 +80,7 @@ func HttpError(w http.ResponseWriter, err error) { ...@@ -80,7 +80,7 @@ func HttpError(w http.ResponseWriter, err error) {
case "404": case "404":
http.Error(w, "Not found: " + err.Error(), http.StatusNotFound) http.Error(w, "Not found: " + err.Error(), http.StatusNotFound)
default: default:
http.Error(w, "Error occurred: " + err.Error(), http.StatusInternalServerError) http.Error(w, "Error occurred", http.StatusInternalServerError)
} }
} }
Markdown is supported
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