Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make not-found errors discoverable #133

Merged
merged 2 commits into from
Aug 29, 2019
Merged

feat: make not-found errors discoverable #133

merged 2 commits into from
Aug 29, 2019

Commits on Aug 29, 2019

  1. feat: make not-found errors discoverable

    Now we just need a common place to put:
    
    func IsNotFound(e error) bool {
      for e != nil {
        if ne, ok := e.(interface { NotFound() bool }); ok {
          return ne.NotFound()
        }
        if ue, ok := e.(interface { Unwrap() error }); ok {
          e = ue.Unwrap()
        } else {
          return false
        }
      }
      return false
    }
    Stebalien committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    473787b View commit details
    Browse the repository at this point in the history
  2. gx: remove support

    Stebalien committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    54da75b View commit details
    Browse the repository at this point in the history