From 3f0c3f61c531ae08018b5528e3e50d2be5c97673 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 19 Oct 2019 04:17:01 +0300 Subject: [PATCH] Crashing on chunk retrieval fail. --- magnetico-migrator.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/magnetico-migrator.go b/magnetico-migrator.go index 424983a..ef93ac1 100644 --- a/magnetico-migrator.go +++ b/magnetico-migrator.go @@ -73,6 +73,8 @@ func mergeDatabases(pyDb *sql.DB, goDb persistence.Database) error { chunk, err := old.GetTorrentsChunk(pyDb, lastId, *chunkSize) if err != nil { zap.L().Error("Error while getting torrents chunk", zap.Uint64("last-id", lastId)) + + return err } if len(chunk) == 0 {