Browse Source

lib/db: Handle missed error variable in old schema upgrade (#6528)

Simon Frei 5 years ago
parent
commit
0ba3abdee4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/db/schemaupdater.go

+ 3 - 0
lib/db/schemaupdater.go

@@ -423,6 +423,9 @@ func (db *schemaUpdater) updateSchema6to7(_ int) error {
 			}
 			return delErr == nil
 		})
+		if delErr != nil {
+			return delErr
+		}
 		if err != nil {
 			return err
 		}