Index: Improve log messages #1010

This commit is contained in:
Michael Mayer 2021-02-08 08:19:30 +01:00
parent b09edde419
commit 9b43e96659

View file

@ -1173,7 +1173,7 @@ func (m *Photo) SetPrimary(fileUID string) error {
Pluck("file_uid", &files).Error; err != nil {
return err
} else if len(files) == 0 {
return fmt.Errorf("%s has no primary file", m.PhotoUID)
return fmt.Errorf("%s has no jpeg", m.PhotoUID)
} else {
fileUID = files[0]
}