mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
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`. |
||
|---|---|---|
| .. | ||
| autoindexing | ||
| codenav | ||
| context | ||
| dependencies | ||
| policies | ||
| ranking | ||
| reposcheduler | ||
| resolvers | ||
| shared | ||
| syntactic_indexing | ||
| types | ||
| uploads | ||
| BUILD.bazel | ||
| CODENOTIFY | ||
| services.go | ||