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`. |
||
|---|---|---|
| .. | ||
| examples | ||
| .gitignore | ||
| BUILD.bazel | ||
| build.sh | ||
| docker-publish.sh | ||
| Dockerfile | ||
| entry.sh | ||
| main_test.go | ||
| main.go | ||
| release.sh | ||
| serve_test.go | ||
| serve.go | ||
| snapshot.go | ||