From d5f6916a41447bcc32bfbd9378da2b4779ca2136 Mon Sep 17 00:00:00 2001 From: Benjamin Goering <171782+gobengo@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:06:14 -0800 Subject: [PATCH] feat: http transport includes more information in error message when encountering non-ok http response --- packages/transport/src/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/transport/src/http.js b/packages/transport/src/http.js index fb953032..183582b6 100644 --- a/packages/transport/src/http.js +++ b/packages/transport/src/http.js @@ -65,7 +65,7 @@ class Channel { const buffer = response.ok ? await response.arrayBuffer() - : HTTPError.throw('HTTP Request failed', response) + : HTTPError.throw(`HTTP Request failed. ${this.method} ${this.url.href} → ${response.status}`, response) return { headers: response.headers.entries