Changeset

2055:ed3910860d11

Prosody top-level error handler modified to log properly on non-string error messages.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 25 Oct 2009 21:26:36 +0500
parents 2054:a43aea9b0bd1
children 2056:c781a949661d
files prosody
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Sun Oct 25 21:21:25 2009 +0500
+++ b/prosody	Sun Oct 25 21:26:36 2009 +0500
@@ -282,7 +282,7 @@
 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