From 0ba3abdee4b7c5db14afba912b14c92e22ba1a84 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 13 Apr 2020 22:58:04 +0200 Subject: [PATCH] lib/db: Handle missed error variable in old schema upgrade (#6528) --- lib/db/schemaupdater.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db/schemaupdater.go b/lib/db/schemaupdater.go index 541106520..2cd5084db 100644 --- a/lib/db/schemaupdater.go +++ b/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 }