feat: page content

This commit is contained in:
2026-03-02 15:40:42 +01:00
parent 19b9532f21
commit c3af7a1b35
16 changed files with 120 additions and 150 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ var ErrNotAnImage = errors.New("not an image")
func (s *Service) getMime(path string) (mimeType string, err error) {
info, err := s.fs.Stat(path)
if err != nil {
err = fmt.Errorf("image file info could not be fetched")
err = fmt.Errorf("image file info could not be fetched: %w", err)
}
if mimer, ok := info.(interface{ ContentType() string }); ok {