diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-10 17:04:36 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-10 17:04:36 +0200 |
commit | dae2e97303535d5f3c42e763a1a809ef340c2eb0 (patch) | |
tree | 9d004b31244e600fb691a575f9d87d48e895ba06 /util/error.lua | |
parent | c964e26cc7236b85e623cf6e2eec001d4208c9ff (diff) | |
download | prosody-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.lua | 2 |
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) |