# HG changeset patch # User Matthew Wild # Date 1463879771 -3600 # Node ID f791651ee334a3f9a4ed6ad792095267d7ef82bc # Parent ba83ff7d9bd7491e05303dba3688a5e08a314d5f util.sql: Import pcall (fixes #677) diff -r ba83ff7d9bd7 -r f791651ee334 util/sql.lua --- 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");