diff --git a/cmd/oz-setup/main.go b/cmd/oz-setup/main.go index 1f35805..53b28f8 100644 --- a/cmd/oz-setup/main.go +++ b/cmd/oz-setup/main.go @@ -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 } diff --git a/profile.go b/profile.go index d861756..35b6fac 100644 --- a/profile.go +++ b/profile.go @@ -130,6 +130,8 @@ func LoadProfiles(dir string) (Profiles, error) { ps = append(ps, p) } } + + loadedProfiles = ps return ps, nil }