commit c19a03c

chld  ·  2026-02-07 04:35:46 +0000 UTC
parent 6ab3fa4
error handling in ld
1 files changed,  +5, -1
+5, -1
 1@@ -65,8 +65,12 @@ func main() {
 2 		}
 3 
 4 		for i := range len(pkgs) {
 5+			x, b := dgr.FindPkg(pkgs[i])
 6+			if !b {
 7+				dgr.Warn("could not find package", pkgs[i])
 8+				continue
 9+			}
10 			dgr.Msg("dependencies of package \033[m\033[33m", pkgs[i], "\033[m:")
11-			x, _ := dgr.FindPkg(pkgs[i])
12 			file, _ := os.ReadFile(filepath.Join(x, "deps"))
13 
14 			f := strings.Fields(string(file))