From e40a0043d47a812f5e7fdc134a01924d62684897 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 19 Feb 2024 19:21:06 +0100 Subject: [PATCH] fix(migration): do not halt the whole migration when copying a background file failed --- pkg/modules/migration/create_from_structure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/modules/migration/create_from_structure.go b/pkg/modules/migration/create_from_structure.go index 9b8f89cd7..2fc965e9f 100644 --- a/pkg/modules/migration/create_from_structure.go +++ b/pkg/modules/migration/create_from_structure.go @@ -159,7 +159,7 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas err = handler.SaveBackgroundFile(s, user, &project.Project, backgroundFile, "", uint64(backgroundFile.Len())) if err != nil { - return err + log.Errorf("[creating structure] Could not create background for project %d, error was %v", project.ID, err) } log.Debugf("[creating structure] Created a background file for project %d", project.ID)