diff options
-rw-r--r-- | lib/syncthing/globalmigrations.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/syncthing/globalmigrations.go b/lib/syncthing/globalmigrations.go index 4b47936c5e..1a38c5c828 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) |