Skip to content

Commit

Permalink
Merge pull request #9 from Hanse/master
Browse files Browse the repository at this point in the history
Add the data object received to the Error object
  • Loading branch information
arunoda committed Oct 21, 2016
2 parents 183fabc + 510e286 commit 74568a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class Transport extends LokkaTransport {
const message = errors[0].message;
const error = new Error(`GraphQL Error: ${message}`);
error.rawError = errors;
error.rawData = data;

throw error;
}
Expand Down

0 comments on commit 74568a5

Please sign in to comment.