• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 1086
98%

Build:
DEFAULT BRANCH: master
Ran 19 Jul 2016 11:42PM UTC
Jobs 1
Files 137
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1086

push

travis-ci

web-flow
Add `message` and `locations` as enumerable properties on GraphQLError. (#443)

As brought up in #426, it can be confusing to return instances of `Error` from the `graphql` function since the expectation is that you will call `JSON.stringify` and submit the result to a client. Calling `JSON.stringify` on an instance of `Error` results in `{}` since it has no enumerable properties.

In order to have behavior that matches the GraphQL spec easier to achieve, this makes these two properties enumerable. I think this will be the best of both worlds - anyone who wishes the operate directly on the Error instances will still have the ability to do so (for example, to access the `stack` property), but it can still be converted to JSON directly and get a spec-compliant result.

8 of 8 new or added lines in 3 files covered. (100.0%)

7179 of 7303 relevant lines covered (98.3%)

1370.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1086.1 19 Jul 2016 11:42PM UTC 0
98.3
Travis Job 1086.1
Source Files on build 1086
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1086
  • 03e62322 on github
  • Prev Build on master (#1083)
  • Next Build on master (#1087)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc