fix: dont render if no versions

This commit is contained in:
decentral1se 2021-12-25 17:12:41 +01:00
parent c8541e1b9d
commit d66c558b5c
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ var recipeVersionCommand = &cli.Command{
}
table.SetAutoMergeCells(true)
table.Render()
if table.NumLines() > 0 {
table.Render()
} else {
logrus.Fatalf("%s has no published versions?", recipe.Name)
}
return nil
},