diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-25 21:26:36 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-25 21:26:36 +0500 |
commit | c07ef005e8b80a849b5b6fcf1a7aff94077cc940 (patch) | |
tree | cb0cf39d097e39a4be0f6d1d9b99ecd3c81f964e | |
parent | 60087d4680a0804c9e5c6fdb4ec236f8f5096012 (diff) | |
download | prosody-c07ef005e8b80a849b5b6fcf1a7aff94077cc940.tar.gz prosody-c07ef005e8b80a849b5b6fcf1a7aff94077cc940.zip |
Prosody top-level error handler modified to log properly on non-string error messages.
-rwxr-xr-x | prosody | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |