Warn when failed to migrate from placeholder

This commit is contained in:
WithoutPants 2022-10-20 01:18:32 +00:00
parent b8a8909a8e
commit 33de28ce5d

View file

@ -187,6 +187,10 @@ func (m *schema32Migrator) migrateFiles(ctx context.Context) error {
if err != nil {
return fmt.Errorf("migrating file %s: %w", p, err)
}
} else {
// if we don't reassign from the placeholder, it will fail
// so log a warning at least here
logger.Warnf("Unable to migrate invalid path: %s", p)
}
lastID = id