Treat more errors

This commit is contained in:
Jguer 2016-12-02 18:03:31 +00:00
parent 16a33d706b
commit 2c6948c33a

View file

@ -122,10 +122,13 @@ func NumberMenu(pkgName string, flags []string) (err error) {
func Install(pkgs []string, flags []string) error {
aurs, repos, _ := pac.PackageSlices(pkgs)
pac.Install(repos, flags)
err := pac.Install(repos, flags)
if err != nil {
fmt.Println("Error installing repo packages.")
}
q, n, err := aur.MultiInfo(aurs)
if len(aurs) != n {
if len(aurs) != n || err != nil {
fmt.Println("Unable to get info on some packages")
}