Skip to content

Commit

Permalink
integrate error codes with pkg/errors to provide error tracing (#1200)
Browse files Browse the repository at this point in the history
* use pingcap/errcode
  • Loading branch information
gregwebs authored and nolouch committed Sep 30, 2018
1 parent d2bf0b9 commit 744c3a6
Show file tree
Hide file tree
Showing 20 changed files with 1,134 additions and 380 deletions.
17 changes: 17 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
name = "github.com/pkg/errors"
version = ">= 0.8.0"

[[constraint]]
name = "github.com/pingcap/errcode"
version = ">= 0.1.0"

[[override]]
name = "github.com/BurntSushi/toml"
revision = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005"
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Consider that raml2html depends on various npm packages and can only be run unde

## Error responses

Error responses from the server are switching to using [error codes](../pkg/error_code/error_code.go).
Error responses from the server are switching to using [errcode codes](https://github.com/pingcap/errcode).
The should use the `errorResp` function. Please look at other places in the codebase that use `errorResp`.
345 changes: 0 additions & 345 deletions pkg/error_code/error_code_test.go

This file was deleted.

Loading

0 comments on commit 744c3a6

Please sign in to comment.