From 33de28ce5d7fd4997f178c88740637456448d012 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 20 Oct 2022 01:18:32 +0000 Subject: [PATCH] Warn when failed to migrate from placeholder --- pkg/sqlite/migrations/32_postmigrate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/sqlite/migrations/32_postmigrate.go b/pkg/sqlite/migrations/32_postmigrate.go index ed80c9765..4dbd65df8 100644 --- a/pkg/sqlite/migrations/32_postmigrate.go +++ b/pkg/sqlite/migrations/32_postmigrate.go @@ -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