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

Try to use the GraphQLError class to produce the error #175

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

abernix
Copy link
Member

@abernix abernix commented Sep 9, 2022

Just to test this approach

garypen and others added 9 commits September 5, 2022 09:42
This doesn't address the root cause of an unexpected error, but it makes
the transtion of the error back through the router a little cleaner.
By looking up how typescript works in google and attempting to write
some.
Signed-off-by: Benjamin Coenen <[email protected]>
Signed-off-by: Benjamin Coenen <[email protected]>
Signed-off-by: Benjamin Coenen <[email protected]>
@@ -215,18 +214,17 @@ async function run() {
});
}
} catch (e) {
logger.warn(`plan_worker: an unknown error occured ${e}\n`);
logger.warn(`plan_worker: an unknown error occurred ${e}\n`);
Copy link
Member Author

Choose a reason for hiding this comment

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

Also fix a typo.

@bnjjj
Copy link
Contributor

bnjjj commented Sep 9, 2022

I already tried, it produces a bad bundle.js with require inside and deno is unable to launch with require

@abernix
Copy link
Member Author

abernix commented Sep 9, 2022

I already tried, it produces a bad bundle.js with require inside and deno is unable to launch with require

Yeah, I know. I wanted to see why. We already use GraphQLError in other files.

@abernix
Copy link
Member Author

abernix commented Sep 9, 2022

I am concerned this doesn't work and I'm going to leave this PR open for now.

Base automatically changed from garypen/1519-slghtly-better-errors to main September 9, 2022 10:04
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