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

show diagnostic when error occurred with --showConfig #28612

Merged
merged 3 commits into from
Dec 8, 2018

Conversation

vvakame
Copy link
Contributor

@vvakame vvakame commented Nov 20, 2018

Fixes #28598
thanks your comment @weswigham

src/tsc/tsc.ts Outdated
if (configParseResult.errors.length !== 0) {
updateReportDiagnostic(configParseResult.options);
configParseResult.errors.forEach(reportDiagnostic);
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsGenerated);
Copy link
Member

Choose a reason for hiding this comment

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

I think return code should be DiagnosticsPresent_OutputsSkipped

Copy link
Member

Choose a reason for hiding this comment

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

Seems reasonable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wow, I forgot to fix it. thanks!

@weswigham
Copy link
Member

Btw @DanielRosenwasser I imagine we wanna take this in 3.1 so we ship the feature without immediately changing it in the next release.

@DanielRosenwasser DanielRosenwasser merged commit c2898db into microsoft:master Dec 8, 2018
@DanielRosenwasser
Copy link
Member

Thanks @vvakame!

@vvakame vvakame deleted the feat-showConfig-error branch December 18, 2018 02:54
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.

4 participants