From 2163e6413cf38126f4e96e2e9e00632542bea649 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Thu, 31 Dec 2015 10:45:21 -0500 Subject: Provide useful backtrace when our plugins misbehave --- lib/IRC/Client.pm6 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/IRC') 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 } }); } -- cgit v1.1