diff options
author | Alexey Makhov <amakhov@avito.ru> | 2015-11-13 00:16:51 +0300 |
---|---|---|
committer | Alexey Makhov <amakhov@avito.ru> | 2015-11-13 00:16:51 +0300 |
commit | 3e7695ae91ad6007511fffd88de9ffbeacdd6a59 (patch) | |
tree | 933b075d6e6515abd249bdc20f0009bffdf02251 /models | |
parent | 1bfebdcdf636c53fd5bc5ae89d8e3c9d4665bf93 (diff) | |
download | gitea-3e7695ae91ad6007511fffd88de9ffbeacdd6a59.tar.gz gitea-3e7695ae91ad6007511fffd88de9ffbeacdd6a59.zip |
#1854 improves
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 6 |
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 } |