From 0f98b9d18fd6298ef6375fb75fe5374250a3d809 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 16 Feb 2022 10:44:57 +0100 Subject: [PATCH] fixed wrong error being handled --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 52b7f54..e410b02 100644 --- a/main.go +++ b/main.go @@ -797,7 +797,7 @@ func (b *BuildManager) syncWorker() { // compare b3sum of PKGBUILD file to hash in database, only proceed if hash differs // reduces the amount of PKGBUILDs that need to be parsed with makepkg, which is _really_ slow, significantly b3s, err := b3sum(pkgbuild) - if dbErr != nil { + if err != nil { log.Fatalf("Error hashing PKGBUILD: %v", err) }