Skip to content

Conversation

@taion
Copy link
Contributor

@taion taion commented Jul 27, 2017

No description provided.

formatErrorMessage(cost), [node],
));
context.reportError(
createError ?
Copy link
Contributor

Choose a reason for hiding this comment

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

most users would want to just format the error object provided? attach metadata to it etc.

y not just do formatError(error: graphqlError) ?

Copy link
Contributor

Choose a reason for hiding this comment

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

meh! it's just about an extra require but i guess doesn't matter much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's just a cleaner API. "Modify this error message that someone else created" is not a great look.

@taion taion merged commit 404c5c8 into master Jul 27, 2017
@taion taion deleted the createError branch July 27, 2017 20:56
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.

3 participants