Skip to content

Commit

Permalink
Merge pull request #13 from citymapper/log_if_listdir_fails
Browse files Browse the repository at this point in the history
Log if LISTDIR operation fails
  • Loading branch information
slai authored Jan 2, 2019
2 parents 49170c8 + ae53ca8 commit 96a3199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (ctx WebServerConfigs) handleListDir(w http.ResponseWriter, path string) {
fileList, err := handlePypiListDir(ctx.fetcher, path)
if err != nil {
desc := fmt.Sprintf("\"LISTDIR %v\" 400 - err: %v", path, err)
log.Println(desc)
http.Error(w, desc, http.StatusBadRequest)
return
}
Expand Down

0 comments on commit 96a3199

Please sign in to comment.