mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +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`. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| BUILD.bazel | ||
| cockroach.go | ||
| CODENOTIFY | ||
| errors_test.go | ||
| errors.go | ||
| filter_test.go | ||
| filter.go | ||
| invariants_test.go | ||
| multi_error.go | ||
| postgres.go | ||
| warning_test.go | ||
| warning.go | ||