aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2018-08-04 18:53:35 -0300
committerMatias Linares <matiaslina@gmail.com>2018-08-04 18:53:35 -0300
commit6d19d6e43896d84e499020ba0b6f380acdfe7f70 (patch)
treec6b8c096249b1a14ae406e9bc4cfed6f883e7f61 /lib
parentf0d1f4f0f15b8d8b1538c9afb4669627db44113b (diff)
downloadperl6-matrix-client-6d19d6e43896d84e499020ba0b6f380acdfe7f70.tar.gz
Hide handle-error from backtrace
Diffstat (limited to 'lib')
-rw-r--r--lib/Matrix/Client/Requester.pm62
1 files changed, 1 insertions, 1 deletions
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<errcode>), :error($data<error>)).throw;