diff options
author | Matias Linares <matiaslina@gmail.com> | 2018-08-04 18:53:35 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2018-08-04 18:53:35 -0300 |
commit | 6d19d6e43896d84e499020ba0b6f380acdfe7f70 (patch) | |
tree | c6b8c096249b1a14ae406e9bc4cfed6f883e7f61 /lib/Matrix/Client | |
parent | f0d1f4f0f15b8d8b1538c9afb4669627db44113b (diff) | |
download | perl6-matrix-client-6d19d6e43896d84e499020ba0b6f380acdfe7f70.tar.gz |
Hide handle-error from backtrace
Diffstat (limited to 'lib/Matrix/Client')
-rw-r--r-- | lib/Matrix/Client/Requester.pm6 | 2 |
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; |