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

improve error message for empty SDL files #1723

Closed
EverlastingBugstopper opened this issue Aug 21, 2023 · 0 comments · Fixed by #1724 or #1726
Closed

improve error message for empty SDL files #1723

EverlastingBugstopper opened this issue Aug 21, 2023 · 0 comments · Fixed by #1724 or #1726
Assignees

Comments

@EverlastingBugstopper
Copy link
Contributor

current error message:

$ rover subgraph publish my-federated-graph@my-variant --schema schema.graphql --name empty --routing-url http://127.0.0.1/

error: Could not read SDL from schema.graphql

Caused by:
    '' was empty

proposed better error message

$ rover subgraph publish my-federated-graph@my-variant --schema schema.graphql --name empty --routing-url http://127.0.0.1/

error[E0XX]: Invalid schema: 'schema.graphql' is an empty file.
  Make sure your schema file is populated with the subgraph schema you are trying to publish.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants