From e4eba6be757fee76c3985419c0b7fd8ae16b5269 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 28 Jan 2018 18:12:24 -0300 Subject: Better format on error message. --- lib/Matrix/Client.pm6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 47610a1..7dfcd27 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -83,8 +83,7 @@ method check-res($res) { if $res.is-success { True } else { - warn $res.status-line; - warn $res.content; + warn "Error with response: {$res.status-line}: {$res.content}"; False } } -- cgit v1.2.3-70-g09d2