From: Tobias Ulmer Date: Tue, 4 Sep 2012 12:03:28 +0000 (+0200) Subject: Don't try to find a "print" field in a string, make sure it's a table X-Git-Tag: e2factory-2.3.13rc1~120 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=07de9b1ac86f90a8fb99f283b88cbb60195da4e7;p=e2factory.git Don't try to find a "print" field in a string, make sure it's a table Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 9cf2801..99c14b6 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -413,7 +413,7 @@ end function e2lib.abort(...) local t = { ... } local e = t[1] - if e and e.print then + if type(e) == "table" and e.print then e:print() else local msg = table.concat(t)