summaryrefslogtreecommitdiffstats
path: root/services/attachment/attachment.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/attachment/attachment.go')
-rw-r--r--services/attachment/attachment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go
index cce36206a7..557cc808a3 100644
--- a/services/attachment/attachment.go
+++ b/services/attachment/attachment.go
@@ -29,7 +29,7 @@ func NewAttachment(attach *repo_model.Attachment, file io.Reader) (*repo_model.A
attach.UUID = uuid.New().String()
size, err := storage.Attachments.Save(attach.RelativePath(), file, -1)
if err != nil {
- return fmt.Errorf("Create: %v", err)
+ return fmt.Errorf("Create: %w", err)
}
attach.Size = size