]> git.e2factory.org Git - e2factory.git/commitdiff
assert args
authorTobias Ulmer <tu@emlix.com>
Wed, 7 May 2014 15:04:25 +0000 (17:04 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/licence.lua

index 09aab3ca72880790246eb5600d55511a2cdc3a2a..c67b38785c4088d7073a41e162df1c3ae049576e 100644 (file)
@@ -114,6 +114,8 @@ end
 -- @return LicenceID or false on error.
 -- @return Error object on failure.
 function licence.licence:licenceid(info)
+    assert(type(info) == "table", "info invalid")
+
     local rc, re, e, hc, fileid
 
     if self._licenceid then