Skip to content

Commit 0ddc7db

Browse files
committed
Log if LISTDIR operation fails
Currently if a LISTDIR operation is requested but fails, there's no mention of it in the logs - the only way to know is through the response content, which is silently swallowed by pip.
1 parent 6bd8bc6 commit 0ddc7db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend.go

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func (ctx WebServerConfigs) handleListDir(w http.ResponseWriter, path string) {
7676
fileList, err := handlePypiListDir(ctx.fetcher, path)
7777
if err != nil {
7878
desc := fmt.Sprintf("\"LISTDIR %v\" 400 - err: %v", path, err)
79+
log.Println(desc)
7980
http.Error(w, desc, http.StatusBadRequest)
8081
return
8182
}

0 commit comments

Comments
 (0)