aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-25 21:26:36 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-25 21:26:36 +0500
commitc07ef005e8b80a849b5b6fcf1a7aff94077cc940 (patch)
treecb0cf39d097e39a4be0f6d1d9b99ecd3c81f964e
parent60087d4680a0804c9e5c6fdb4ec236f8f5096012 (diff)
downloadprosody-c07ef005e8b80a849b5b6fcf1a7aff94077cc940.tar.gz
prosody-c07ef005e8b80a849b5b6fcf1a7aff94077cc940.zip
Prosody top-level error handler modified to log properly on non-string error messages.
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index 99d7602c..e22e5945 100755
--- a/prosody
+++ b/prosody
@@ -282,7 +282,7 @@ end
function loop()
-- Error handler for errors that make it this far
local function catch_uncaught_error(err)
- if err:match("%d*: interrupted!$") then
+ if type(err) == "string" and err:match("%d*: interrupted!$") then
return "quitting";
end