diff options
author | Marek <marek@deepmind.com> | 2016-03-09 18:35:09 +0300 |
---|---|---|
committer | Marek <marek@deepmind.com> | 2016-03-09 18:35:09 +0300 |
commit | ebde0bd1a59fcab7fb441179aa8cf26ab6657c18 (patch) | |
tree | 6f0b88993057d6562e5a77c372102e72638af939 | |
parent | 2c66c0d9ceed8fdfd4f0230a4d0d38f6d9fbcee0 (diff) |
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.".
-rw-r--r-- | gmodule.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |