sourcegraph/cmd/frontend/internal/handlerutil
Varun Gandhi 2955bb6cfb
chore: Change errors.HasType to respect multi-errors (#63024)
With this patch, the `errors.HasType` API behaves similar to `Is` and `As`,
where it checks the full error tree instead of just checking a linearized version
of it, as cockroachdb/errors's `HasType` implementation does not respect
multi-errors.

As a consequence, a bunch of relationships between HasType and Is/As that
you'd intuitively expect to hold are now true; see changes to `invariants_test.go`.
2024-06-06 13:02:14 +00:00
..
BUILD.bazel httpapi/graphql: add error wrapping to graphql serving (#56401) 2023-09-06 13:26:30 -07:00
doc.go chore: Cleanup packages (#13833) 2020-09-17 09:59:16 -05:00
error.go chore: Cleanup packages (#13833) 2020-09-17 09:59:16 -05:00
handler.go bazel: first pass at moving moving logging linting into nogo (#58910) 2024-01-02 10:07:25 -08:00
repo_test.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00
repo.go Misc: retain URL params on redirect (#59887) 2024-01-25 19:28:18 -07:00