summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index b3af6705ca..1f8f484132 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -1975,7 +1975,7 @@ func updateAttachments(item interface{}, files []string) error {
case *models.Comment:
attachments = content.Attachments
default:
- return fmt.Errorf("Unknow Type")
+ return fmt.Errorf("Unknown Type: %T", content)
}
for i := 0; i < len(attachments); i++ {
if util.IsStringInSlice(attachments[i].UUID, files) {
@@ -1993,7 +1993,7 @@ func updateAttachments(item interface{}, files []string) error {
case *models.Comment:
err = content.UpdateAttachments(files)
default:
- return fmt.Errorf("Unknow Type")
+ return fmt.Errorf("Unknown Type: %T", content)
}
if err != nil {
return err
@@ -2005,7 +2005,7 @@ func updateAttachments(item interface{}, files []string) error {
case *models.Comment:
content.Attachments, err = models.GetAttachmentsByCommentID(content.ID)
default:
- return fmt.Errorf("Unknow Type")
+ return fmt.Errorf("Unknown Type: %T", content)
}
return err
}