Fix first-time alias add

This commit is contained in:
Ryan McGuire 2023-12-10 10:14:02 -05:00
parent cdf92c8a54
commit e0d86a7662

View File

@ -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")
} }
} }