From 6d19d6e43896d84e499020ba0b6f380acdfe7f70 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sat, 4 Aug 2018 18:53:35 -0300 Subject: Hide handle-error from backtrace --- lib/Matrix/Client/Requester.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Matrix/Client/Requester.pm6 b/lib/Matrix/Client/Requester.pm6 index 4bf6b14..68c0323 100644 --- a/lib/Matrix/Client/Requester.pm6 +++ b/lib/Matrix/Client/Requester.pm6 @@ -14,7 +14,7 @@ has $!client-endpoint = "/_matrix/client/r0"; has $!url-prefix = ""; has $!sync-since = ""; -method !handle-error($response) { +method !handle-error($response) is hidden-from-backtrace { unless $response.is-success { my $data = from-json($response.content); X::Matrix::Response.new(:code($data), :error($data)).throw; -- cgit v1.2.3-70-g09d2