diff --git a/internal/api/photo_unstack.go b/internal/api/photo_unstack.go index 79736f934..cb516c2b8 100644 --- a/internal/api/photo_unstack.go +++ b/internal/api/photo_unstack.go @@ -141,7 +141,7 @@ func PhotoUnstack(router *gin.RouterGroup) { // Handle error... log.Errorf("photo: %s (unstack %s)", err.Error(), txt.Quote(r.BaseName())) - // Remove new photo from database. + // Remove new photo from index. if _, err := newPhoto.Delete(true); err != nil { log.Errorf("photo: %s (unstack %s)", err.Error(), txt.Quote(r.BaseName())) } diff --git a/internal/commands/purge.go b/internal/commands/purge.go index 0e4c53e5e..a44bdfac8 100644 --- a/internal/commands/purge.go +++ b/internal/commands/purge.go @@ -20,7 +20,7 @@ import ( // PurgeCommand registers the index cli command. var PurgeCommand = cli.Command{ Name: "purge", - Usage: "Flags missing files as hidden, updates counts and covers", + Usage: "Flags missing files, updates counts and covers", Flags: purgeFlags, Action: purgeAction, } @@ -28,7 +28,7 @@ var PurgeCommand = cli.Command{ var purgeFlags = []cli.Flag{ cli.BoolFlag{ Name: "hard", - Usage: "permanently remove from database", + Usage: "permanently remove from index", }, cli.BoolFlag{ Name: "dry", diff --git a/internal/entity/file.go b/internal/entity/file.go index a83fa8fbb..a23551e9a 100644 --- a/internal/entity/file.go +++ b/internal/entity/file.go @@ -217,7 +217,7 @@ func (m *File) DeletePermanently() error { } if err := UnscopedDb().Delete(FileSync{}, "file_id = ?", m.ID).Error; err != nil { - log.Errorf("file %s: %s while removing sync info", txt.Quote(m.FileUID), err) + log.Errorf("file %s: %s while removing remote sync info", txt.Quote(m.FileUID), err) } if err := m.ReplaceHash(""); err != nil {