Prosody top-level error handler modified to log properly on non-string error messages.
authorWaqas Hussain <waqas20@gmail.com>
Sun, 25 Oct 2009 16:26:36 +0000 (21:26 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sun, 25 Oct 2009 16:26:36 +0000 (21:26 +0500)
prosody

diff --git a/prosody b/prosody
index 99d7602ced855b93047ddf0f9b7cdd1e1b6f3e55..e22e59454ab3070649284db4fe938bc2bb49e610 100755 (executable)
--- 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