From ebde0bd1a59fcab7fb441179aa8cf26ab6657c18 Mon Sep 17 00:00:00 2001 From: Marek Date: Wed, 9 Mar 2016 15:35:09 +0000 Subject: Improved error message (expecting table of inputs) I think a better error message. Currently if I pass in 2 comma separated inputs the error is: "Error, expecting 2 inputs". After this change it will be "Error, expecting table of 2 inputs.". --- gmodule.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmodule.lua b/gmodule.lua index 3501f0c..2a367d4 100644 --- a/gmodule.lua +++ b/gmodule.lua @@ -274,7 +274,7 @@ function gModule:runForwardFunction(func,input) if nInputs <= 1 then input={input} elseif type(input) ~= "table" then - error(string.format("expecting %s inputs", nInputs)) + error(string.format("expecting table of %s inputs", nInputs)) end local function neteval(node) local function propagate(node,x) -- cgit v1.2.3