aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-10 17:04:36 +0200
committerKim Alvefur <zash@zash.se>2019-07-10 17:04:36 +0200
commit078178a3bac5c0ed69d629119d1c84bac3eda480 (patch)
tree9d004b31244e600fb691a575f9d87d48e895ba06 /util
parenta7e58a0c50dd7bf8d5321b50467707e93effc994 (diff)
downloadprosody-078178a3bac5c0ed69d629119d1c84bac3eda480.tar.gz
prosody-078178a3bac5c0ed69d629119d1c84bac3eda480.zip
util.error: Fix traceback due to missing text field
Diffstat (limited to 'util')
-rw-r--r--util/error.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error.lua b/util/error.lua
index 344dd274..23551fe2 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -1,7 +1,7 @@
local error_mt = { __name = "error" };
function error_mt:__tostring()
- return ("error<%s:%s:%s>"):format(self.type, self.condition, self.text);
+ return ("error<%s:%s:%s>"):format(self.type, self.condition, self.text or "");
end
local function is_err(e)