]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: improve js fetch errors
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Sat, 28 Jan 2023 06:53:25 +0000 (22:53 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 9 Feb 2023 20:44:24 +0000 (20:44 +0000)
commita64919945bdb65202783c5f9e078c3e735efc58f
treed15ccbc0350a959a3b35a576e28002b6111f8a64
parentf1855993f3aa0042014952b3a3ce80296df838b1
net/http: improve js fetch errors

The Error type used in failed fetch invocations contain more
information than we're currently extracting. Optimistically
look for the cause field for extra context for errors.

Change-Id: I6c8e4b230a21ec684af2107707aa605fc2148fcf
Reviewed-on: https://go-review.googlesource.com/c/go/+/463978
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Evan Phoenix <evan@phx.io>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
src/net/http/roundtrip_js.go