aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2015-12-31 10:45:21 -0500
committerZoffix Znet <cpan@zoffix.com>2015-12-31 10:45:21 -0500
commit2163e6413cf38126f4e96e2e9e00632542bea649 (patch)
tree7c9f7e51deb380cecd621a83bf31277584170b50 /lib
parent3417f8fa3662002cbacdc88e1bac6e7fe146c91f (diff)
Provide useful backtrace when our plugins misbehave
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client.pm66
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 65f80e7..e130174 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -69,12 +69,18 @@ class IRC::Client:ver<2.001001> {
my $res = $p.irc-unhandled(self, $e);
next EVENTS unless $res === IRC_NOT_HANDLED;
}
+
+ CATCH { warn .backtrace }
}
}
+
+ CATCH { warn .backtrace }
}
say "Closing connection";
$!sock.close;
+
+ CATCH { warn .backtrace }
});
}