From a117e877854e55319e12a6ad7cb633163e4350b0 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Sun, 14 Jun 2015 02:13:10 +0000 Subject: [PATCH] Fixed loadedProfiles --- cmd/oz-setup/main.go | 2 +- profile.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 }