Software /
code /
prosody
Changeset
7428:f791651ee334
util.sql: Import pcall (fixes #677)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 May 2016 02:16:11 +0100 |
parents | 7424:ba83ff7d9bd7 |
children | 7429:713d6f8e84d0 7431:0d991d5659f0 |
files | util/sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sql.lua Thu May 12 18:45:30 2016 +0100 +++ b/util/sql.lua Sun May 22 02:16:11 2016 +0100 @@ -2,7 +2,7 @@ local setmetatable, getmetatable = setmetatable, getmetatable; local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113 local tonumber, tostring = tonumber, tostring; -local assert, xpcall, debug_traceback = assert, xpcall, debug.traceback; +local assert, pcall, xpcall, debug_traceback = assert, pcall, xpcall, debug.traceback; local t_concat = table.concat; local s_char = string.char; local log = require "util.logger".init("sql");