More specific error messages when a problem is encountered with the configuration.
See original GitHub issueIs your feature request related to a problem? Please describe.
I have a quite large codegen.js
file and just made a number of changes to it and clearly got something wrong. When I run graphql-codegen
though it simply prints:
Invalid "generates" config!
Invalid "generates" config!
This doesn’t give me a lot to go on for tracking down the issue.
Describe the solution you’d like
I would like it if the error message printed could be a bit more specific about what was actually invalid about the config.
Describe alternatives you’ve considered
I checked that I can load the config as a node module so there is no syntax error. I looked for a verbose command line argument and found none.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Configuration error messages - IBM
Message Cause So...
CLFRO0045E: Failed to verify request. This issue is caused because of session timeout. Us...
CLFRO2008E: internal error An unspecified error occurred. Ch......
Read more >Error Handling Flaws - Information and How to Fix - Veracode
Improper error handling flaws occur when an error message that's displayed to an end user provides clues about how an application or website...
Read more >Improper Error Handling - OWASP Foundation
The most common problem is when detailed internal error messages such as stack traces, database dumps, and error codes are displayed to the...
Read more >Troubleshooting Stop error messages that may occur when ...
Describes the Stop error messages that you may receive when you try to install Windows Vista. Discusses the possible causes of each Stop...
Read more >Configuration error messages - HCL Product Documentation
Message Cause So...
CLFRO0045E: Failed to verify request. This issue is caused because of session timeout. Us...
CLFRO2008E: internal error An unspecified error occurred. Ch......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in
@graphql-tools/utils
with this commit; https://github.com/ardatan/graphql-tools/commit/b968463124cd2e397852d4e57ebe36acf3602462It’ll be available soon in GraphQL Codegen cc @dotansimha
The fix has been published 😇