diff options
author | Zoffix Znet <cpan@zoffix.com> | 2015-12-31 10:45:21 -0500 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2015-12-31 10:45:21 -0500 |
commit | 2163e6413cf38126f4e96e2e9e00632542bea649 (patch) | |
tree | 7c9f7e51deb380cecd621a83bf31277584170b50 /lib/IRC | |
parent | 3417f8fa3662002cbacdc88e1bac6e7fe146c91f (diff) |
Provide useful backtrace when our plugins misbehave
Diffstat (limited to 'lib/IRC')
-rw-r--r-- | lib/IRC/Client.pm6 | 6 |
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 } }); } |