feat: page content
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user