From c07ef005e8b80a849b5b6fcf1a7aff94077cc940 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 25 Oct 2009 21:26:36 +0500 Subject: Prosody top-level error handler modified to log properly on non-string error messages. --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') 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 -- cgit v1.2.3