From 6b48ac5f025638a7017758bf2ded948fe00b8137 Mon Sep 17 00:00:00 2001 From: Unbewohnte <65883674+Unbewohnte@users.noreply.github.com> Date: Sun, 4 Apr 2021 09:40:12 +0300 Subject: [PATCH] Update backgroundchanger.go --- backgroundchanger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backgroundchanger.go b/backgroundchanger.go index d1a59ff..61217e2 100644 --- a/backgroundchanger.go +++ b/backgroundchanger.go @@ -204,6 +204,7 @@ func replaceBackgrounds(beatmapFolder, replacementPicPath string) (successful, f if err != nil { failed++ log.Println("ERROR: Error removing old background : ", err, " file: ", backgroundPath) + continue } // create new background file @@ -219,6 +220,7 @@ func replaceBackgrounds(beatmapFolder, replacementPicPath string) (successful, f err = copyFile(replacementPicPath, backgroundPath) if err != nil { failed++ + continue } successful++ }