summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/action.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index 106f2c2eb5..4a376f89d4 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
}