Fixed loadedProfiles

master
xSmurf 9 years ago
parent 8ff505f2e3
commit a117e87785

@ -99,7 +99,7 @@ func handleInstall(c *cli.Context) {
pname := c.Args()[0]
OzProfile, err := loadProfile(pname, OzConfig.ProfileDir)
if err != nil || OzProfile == nil {
installExit(c.Bool("hook"), fmt.Errorf("Unable to load profiles for %s.\n", pname))
installExit(c.Bool("hook"), fmt.Errorf("Unable to load profiles for %s (%v).\n", pname, err))
return // For clarity
}

@ -130,6 +130,8 @@ func LoadProfiles(dir string) (Profiles, error) {
ps = append(ps, p)
}
}
loadedProfiles = ps
return ps, nil
}

Loading…
Cancel
Save