From 3e7695ae91ad6007511fffd88de9ffbeacdd6a59 Mon Sep 17 00:00:00 2001 From: Alexey Makhov Date: Fri, 13 Nov 2015 00:16:51 +0300 Subject: [PATCH] #1854 improves --- models/action.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/models/action.go b/models/action.go index 106f2c2e..4a376f89 100644 --- a/models/action.go +++ b/models/action.go @@ -139,7 +139,11 @@ func (a Action) GetIssueInfos() []string { func (a Action) GetIssueTitle() string { issueID := com.StrTo(a.GetIssueInfos()[0]).MustInt64() - issue, _ := GetIssueByID(issueID) + issue, err := GetIssueByID(issueID) + if err != nil { + log.Error(4, "GetIssueByID: %v", err) + return "500 when get title" + } return issue.Name }