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 parser error messaging when processing parent/plugin #327

Closed
mmulholla opened this issue Jan 26, 2021 · 0 comments · Fixed by devfile/library#70
Closed

Improve parser error messaging when processing parent/plugin #327

mmulholla opened this issue Jan 26, 2021 · 0 comments · Fixed by devfile/library#70
Assignees
Labels
area/library Common devfile library for interacting with devfiles kind/enhancement New feature or request

Comments

@mmulholla
Copy link
Contributor

My test has a devfile which specifies a parent uri, but I had made a typo in the uri.

In this case the parser, when asked to process the devfile, gives this error: "apiVersion or schemaVersion not present in devfile"

This happened because when the parser reads the parent it assume the target uri exists and can't find a schema version.

It would have been very helpful had the message been:
preferred: that the parent uri was not valid
or: that the schema version was not found in the parent.

@elsony elsony added the area/library Common devfile library for interacting with devfiles label Jan 28, 2021
@yangcao77 yangcao77 added the kind/enhancement New feature or request label Feb 25, 2021
@yangcao77 yangcao77 self-assigned this Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Common devfile library for interacting with devfiles kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants