Fix first-time alias add
This commit is contained in:
parent
cdf92c8a54
commit
e0d86a7662
@ -58,7 +58,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func mustHaveProjects(cmd *cobra.Command, args []string) {
|
func mustHaveProjects(cmd *cobra.Command, args []string) {
|
||||||
if len(cache.Aliases) == 0 {
|
if len(cache.Projects) == 0 {
|
||||||
plog.Fatal("No projects to " + cmd.Name() + ", try running cache load")
|
plog.Fatal("No projects to " + cmd.Name() + ", try running cache load")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user