]> git.e2factory.org Git - e2factory.git/commitdiff
Don't pass unpredictable error strings as format string
authorTobias Ulmer <tu@emlix.com>
Wed, 18 Jul 2012 12:13:19 +0000 (14:13 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 18 Jul 2012 12:13:19 +0000 (14:13 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/err.lua

index 530dc22c4c318770af710354cf347044116d9416..b93ed1f126c2f7c251aa3fc0ae7da370051f1d48 100644 (file)
@@ -45,7 +45,7 @@ end
 function cat(e, re)
        -- auto-convert strings to error objects before inserting
        if type(re) == "string" then
-               re = new_error(re)
+               re = new_error("%s", re)
        end
        table.insert(e.msg, re)
        e.count = e.count + 1