Require input as part of all recipes

This commit is contained in:
Andrew Miner
2015-01-01 19:06:04 -08:00
parent 0c781793c6
commit 1a9ae1791e
2 changed files with 2 additions and 7 deletions
+2 -1
View File
@@ -79,8 +79,9 @@ module.exports.V1 = class V1
output = @_parseItemList data.output, field:'output', canBeEmpty:false
@_errorLocation = "recipe for #{output[0].name}"
data.input ?= []
if not data.input? then throw new Error "#{@_errorLocation} is missing input"
data.tools ?= []
input = @_parseItemList data.input, field:'input', canBeEmpty:true
tools = @_parseItemList data.tools, field:'tools', canBeEmpty:true