Index: Improve log messages #1010
This commit is contained in:
parent
b09edde419
commit
9b43e96659
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue