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

handler: consolidates FormatErrorFn #59

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Conversation

chris-ramon
Copy link
Member

@chris-ramon chris-ramon commented Dec 10, 2018

Overview

Test plan

  • Unit tests.

@chris-ramon chris-ramon merged commit bece7a6 into master Dec 10, 2018
@chris-ramon chris-ramon deleted the updated-format-error-fn branch December 10, 2018 00:33
@AutomateAaron
Copy link

This seemed to have broken my ability to go get github.com/graphql-go/handler, I'm now getting the following errors:

# github.com/graphql-go/handler
projects/gopath/src/github.com/graphql-go/handler/handler.go:147:47: formattedError.OriginalError undefined (type gqlerrors.FormattedError has no field or method OriginalError)

@chris-ramon
Copy link
Member Author

chris-ramon commented Dec 10, 2018

Hi @AaronNBrock, I believe updating github.com/graphql-go/graphql should fix the issue your describing:

go get -u github.com/graphql-go/graphql

I've reproduce the issue you might facing, breaking in steps to fix it:

(handler)-> pwd
/home/chris/.gvm/pkgsets/go1.9.7/gql/src/github.com/graphql-go/handler
(handler)-> git log -n 1
commit bece7a661c2640529c5131854692a9d38150defc
Merge: 12f536e d08c809
Author: Chris Ramón <rchristian.ramon@gmail.com>
Date:   Sun Dec 9 19:33:33 2018 -0500

    Merge pull request #59 from graphql-go/updated-format-error-fn
    
    handler: consolidates FormatErrorFn
(handler)-> go test ./...
# github.com/graphql-go/handler
./handler.go:147:47: formattedError.OriginalError undefined (type gqlerrors.FormattedError has no field or method OriginalError)
FAIL    github.com/graphql-go/handler [build failed]
(handler)-> (cd ../ && cd graphql && git log -n 1)
commit 8000299290374795a939114c26e9e2a39de08213
Merge: 993e01c 31bba03
Author: Chris Ramón <rchristian.ramon@gmail.com>
Date:   Sun Dec 2 18:00:55 2018 -0500

    Merge pull request #425 from graphql-go/enable-go-module
    
    Use Go Modules.
(handler)-> go get -u github.com/graphql-go/graphql
(handler)-> 
(handler)-> go test ./...
ok      github.com/graphql-go/handler   0.005s

@AutomateAaron
Copy link

AutomateAaron commented Dec 10, 2018

@chris-ramon That was exactly my problem, updating github.com/graphql-go/graphql solved it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants