From: Tobias Ulmer Date: Wed, 7 May 2014 15:04:25 +0000 (+0200) Subject: assert args X-Git-Tag: e2factory-2.3.15rc1~204 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=be057e135e4e1555d0a0274438631f7a7541693c;p=e2factory.git assert args Signed-off-by: Tobias Ulmer --- diff --git a/local/licence.lua b/local/licence.lua index 09aab3c..c67b387 100644 --- a/local/licence.lua +++ b/local/licence.lua @@ -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