Skip to content

Commit a279197

Browse files
committed
add error logs
1 parent fd349ab commit a279197

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/media/media.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func (m *Manager) Upload(fileName, contentType string, content io.ReadSeeker) (s
109109
// Detect content type and override if needed.
110110
contentType, err := m.detectContentType(contentType, content)
111111
if err != nil {
112+
m.lo.Error("error detecting content type", "error", err)
112113
return "", "", err
113114
}
114115

0 commit comments

Comments
 (0)