diff --git a/lib/syncthing/globalmigrations.go b/lib/syncthing/globalmigrations.go index 4b47936c5..1a38c5c82 100644 --- a/lib/syncthing/globalmigrations.go +++ b/lib/syncthing/globalmigrations.go @@ -33,7 +33,9 @@ func globalMigration(ll *db.Lowlevel, cfg config.Wrapper) error { } if prevVersion < 1 { - return encryptionTrailerSizeMigration(ll, cfg) + if err := encryptionTrailerSizeMigration(ll, cfg); err != nil { + return err + } } return miscDB.PutInt64(globalMigrationDBKey, globalMigrationVersion)