aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2018-01-28 18:12:24 -0300
committerMatias Linares <matiaslina@openmailbox.org>2018-01-28 18:12:24 -0300
commite4eba6be757fee76c3985419c0b7fd8ae16b5269 (patch)
treee191a16b97b0914c98c73544c01adc9652cc93db /lib
parent6af45e001a3dffe83178eacb85c18cf62c6485ce (diff)
downloadperl6-matrix-client-e4eba6be757fee76c3985419c0b7fd8ae16b5269.tar.gz
Better format on error message.
Diffstat (limited to 'lib')
-rw-r--r--lib/Matrix/Client.pm63
1 files changed, 1 insertions, 2 deletions
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
}
}