Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

graphql: oops wrap json errors with message #186

Merged
merged 1 commit into from
Oct 10, 2018
Merged

Conversation

stephen
Copy link
Contributor

@stephen stephen commented Oct 10, 2018

Helpful for debugging c.handle errors logged. As a follow up, we should
fix up this code path so that errors can be handled by the client code.

Helpful for debugging c.handle errors logged. As a follow up, we should
fix up this code path so that errors can be handled by the client code.
@@ -11,6 +11,7 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/samsarahq/go/oops"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a new dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1147

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.06%) to 65.863%

Changes Missing Coverage Covered Lines Changed/Added Lines %
graphql/server.go 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
graphql/schemabuilder/reflect.go 4 71.81%
Totals Coverage Status
Change from base Build 1145: 0.06%
Covered Lines: 3523
Relevant Lines: 5349

💛 - Coveralls

Copy link
Contributor

@berfarah berfarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little bit sad about adding this dependency, but at the same time, it's what we use internally

@stephen
Copy link
Contributor Author

stephen commented Oct 10, 2018

Think we can revisit if/when go2 takes a stance.

@stephen stephen merged commit 66c0541 into master Oct 10, 2018
@berfarah berfarah deleted the stephen/error branch October 10, 2018 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants