Skip to content

Conversation

@devhawk
Copy link

@devhawk devhawk commented Feb 27, 2019

ColorTool now has three different color scheme parsers (.ini files, concfg JSON files and itermcolors XML files). Because each scheme parser is tried in turn until one succeeds, any scheme parser that fails dumps useless error information to the console.

This change flips the reportErrors parameter of ISchemeParser.ParseScheme from true to false so these failed parse error messages are not printed by default. This PR also adds a new --errors or -e command line argument to enable error reporting for usage scenarios that need it.

@devhawk devhawk changed the title Devhawk/errors arg Don't report scheme parse errors by default Feb 27, 2019
@miniksa miniksa added the Product-Colortool This is a problem with the utility application ColorTool for manipulating the console color palette. label Feb 27, 2019
Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@miniksa miniksa requested a review from zadjii-msft February 27, 2019 17:07
Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@miniksa miniksa requested a review from DHowett-MSFT February 27, 2019 19:09
@miniksa
Copy link
Member

miniksa commented Feb 27, 2019

@DHowett-MSFT, @zadjii-msft, can one of you be second reviewer?

Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could benefit from a general overhaul. Error suppression or reporting should be the responsibility of the callers of ParseScheme, but I think this is an acceptable low-risk quality of life fix as-is.

@miniksa miniksa merged commit 52ef475 into microsoft:master Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-Colortool This is a problem with the utility application ColorTool for manipulating the console color palette.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants