From 07de9b1ac86f90a8fb99f283b88cbb60195da4e7 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 4 Sep 2012 14:03:28 +0200 Subject: [PATCH] Don't try to find a "print" field in a string, make sure it's a table Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5