From: Tobias Ulmer Date: Wed, 18 Jul 2012 12:13:19 +0000 (+0200) Subject: Don't pass unpredictable error strings as format string X-Git-Tag: e2factory-2.3.12rc1~2 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5b7625e7ebd9b5cb69417f371f599108bdf8e1e2;p=e2factory.git Don't pass unpredictable error strings as format string Signed-off-by: Tobias Ulmer --- diff --git a/generic/err.lua b/generic/err.lua index 530dc22..b93ed1f 100644 --- a/generic/err.lua +++ b/generic/err.lua @@ -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