forked from toolshed/abra
		
	fix: dont render if no versions
This commit is contained in:
		| @ -40,7 +40,12 @@ var recipeVersionCommand = &cli.Command{ | |||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		table.SetAutoMergeCells(true) | 		table.SetAutoMergeCells(true) | ||||||
|  |  | ||||||
|  | 		if table.NumLines() > 0 { | ||||||
| 			table.Render() | 			table.Render() | ||||||
|  | 		} else { | ||||||
|  | 			logrus.Fatalf("%s has no published versions?", recipe.Name) | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		return nil | 		return nil | ||||||
| 	}, | 	}, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user