From 4d2c75e70b3ce780414fb884fcd102da88eef2c7 Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Thu, 3 Jan 2019 15:56:26 +0000 Subject: [PATCH] fix(api): fix nil pointer --- pkg/api/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/index.go b/pkg/api/index.go index 9e1f661..e4a2426 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -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()