fix(api): fix nil pointer

This commit is contained in:
Nicolas Carlier 2019-01-03 15:56:26 +00:00
parent 891be3c091
commit 4d2c75e70b

View File

@ -123,7 +123,7 @@ func getWebhookLog(w http.ResponseWriter, r *http.Request) {
return
}
if logFile == nil {
http.Error(w, err.Error(), http.StatusNotFound)
http.Error(w, "job not found", http.StatusNotFound)
return
}
defer logFile.Close()