X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosody;h=e22e59454ab3070649284db4fe938bc2bb49e610;hb=c9ce27b8168e7c1d9cfbeb3be43dd8b141409c76;hp=99d7602ced855b93047ddf0f9b7cdd1e1b6f3e55;hpb=bb477934d3abb09be9fddfeaaa5742e0f04a3513;p=prosody.git 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