From 8aa6f59cad6b25fc7569e900ab51327c3bf9580f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 15 Aug 2016 23:23:32 -0700 Subject: [PATCH] pixiecore: give the error message when getting a file by ID fails. --- pixiecore/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixiecore/http.go b/pixiecore/http.go index 798b2da..ef8dc11 100644 --- a/pixiecore/http.go +++ b/pixiecore/http.go @@ -116,7 +116,7 @@ func (s *Server) handleFile(w http.ResponseWriter, r *http.Request) { f, err := s.Booter.ReadBootFile(ID(name)) if err != nil { - s.log("HTTP", "Error getting file %q (query %q from %s)", name, r.URL, r.RemoteAddr) + s.log("HTTP", "Error getting file %q (query %q from %s): %s", name, r.URL, r.RemoteAddr, err) http.Error(w, "couldn't get file", http.StatusInternalServerError) return }