Skip to content

Improve parser error messaging when processing parent/plugin #327

@mmulholla

Description

@mmulholla

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.

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions