Skip to content

Commit

Permalink
feat: Log not found
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 26, 2024
1 parent 26a4d76 commit be7da3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crud/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (s Service) handleMultipart(w http.ResponseWriter, r *http.Request, request
}

if _, err := s.storage.Stat(ctx, request.SubPath(fileName)); err == nil {
s.error(w, r, request, model.WrapInvalid(ErrFileAlreadyExists))
s.error(w, r, request, model.WrapInvalid(fmt.Errorf("filename `%s`: %w", fileName, ErrFileAlreadyExists)))
return
}
}
Expand Down

0 comments on commit be7da3b

Please sign in to comment.