]> git.e2factory.org Git - e2factory.git/commitdiff
Don't try to find a "print" field in a string, make sure it's a table
authorTobias Ulmer <tu@emlix.com>
Tue, 4 Sep 2012 12:03:28 +0000 (14:03 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:09 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 9cf2801cf75c04ab6108a386b241bf8e3a141fbf..99c14b617c56951f72b43c30914faa567bf85a38 100644 (file)
@@ -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)