mirror of
https://github.com/danderson/netboot.git
synced 2025-10-15 17:41:38 +02:00
pixiecore: give the error message when getting a file by ID fails.
This commit is contained in:
parent
d4fb2bbbe4
commit
8aa6f59cad
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user