Skip to content

Better error message for manifest input validation errors#812

Merged
yao-msft merged 1 commit into
microsoft:masterfrom
yao-msft:user/yaosun/bettererrormsg
Mar 19, 2021
Merged

Better error message for manifest input validation errors#812
yao-msft merged 1 commit into
microsoft:masterfrom
yao-msft:user/yaosun/bettererrormsg

Conversation

@yao-msft

@yao-msft yao-msft commented Mar 19, 2021

Copy link
Copy Markdown
Contributor

Previously the manifest input validation code does not check required fields existence before using them to determine manifest consistency. This will result in unhelpful error message saying "Expected node type does not match". This change checks those fields before using them to give a better error message for winget validate commands.

Also removed the format uri restriction per Union's ask.

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner March 19, 2021 01:45
@yao-msft yao-msft force-pushed the user/yaosun/bettererrormsg branch from a32f3de to f04d86f Compare March 19, 2021 08:02
@yao-msft yao-msft merged commit c857d0d into microsoft:master Mar 19, 2021
@yao-msft yao-msft deleted the user/yaosun/bettererrormsg branch March 19, 2021 21:33
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.

2 participants