mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-09 18:43:43 +00:00
fix(api): fix nil pointer
This commit is contained in:
parent
891be3c091
commit
4d2c75e70b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user