Remove all log.Fatal and os.Exit calls from bpmlib

This commit is contained in:
2025-04-10 14:54:41 +03:00
parent 14fe71842e
commit 3f2d5cf7a1
4 changed files with 47 additions and 15 deletions
+4 -1
View File
@@ -179,7 +179,10 @@ func UpdatePackages(rootDir string, syncDatabase bool, installOptionalDependenci
}
// Reload config and local databases
ReadConfig()
err = ReadConfig()
if err != nil {
return nil, fmt.Errorf("could not read BPM config: %s", err)
}
// Get installed packages and check for updates
pkgs, err := GetInstalledPackages(rootDir)