aboutsummaryrefslogtreecommitdiffstats
path: root/util/error.lua
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
commitdae2e97303535d5f3c42e763a1a809ef340c2eb0 (patch)
tree9d004b31244e600fb691a575f9d87d48e895ba06 /util/error.lua
parentc964e26cc7236b85e623cf6e2eec001d4208c9ff (diff)
downloadprosody-dae2e97303535d5f3c42e763a1a809ef340c2eb0.tar.gz
prosody-dae2e97303535d5f3c42e763a1a809ef340c2eb0.zip
util.error: Fix traceback due to missing text field
Diffstat (limited to 'util/error.lua')
-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)