Skip to content

Add console.warn to process.stdin catch block #2838

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

Merged
merged 1 commit into from
Mar 11, 2017

Conversation

scottaddie
Copy link
Contributor

Summary
Per @Daniel15's suggestion, this PR adds a console.warn statement to the catch block introduced in PR #2837.

Test plan
I ran the following commands to ensure that my changes didn't introduce any problems:
yarn run build
yarn run lint
yarn run test

@@ -120,6 +120,7 @@ export default class BaseReporter {
try {
standardInput = process.stdin;
Copy link
Member

Choose a reason for hiding this comment

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

could you please add a text comment why we do the trick?
Going forward this file may be refactored multiple times and we would loose the original reason for try/catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem. This is done.

Copy link
Member

@bestander bestander left a comment

Choose a reason for hiding this comment

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

Looks good, just needs a comment

@scottaddie scottaddie force-pushed the display_exception_message branch from a15fa80 to b26f557 Compare March 11, 2017 02:17
@Daniel15
Copy link
Member

Thanks!

@Daniel15 Daniel15 merged commit 1b89ee8 into yarnpkg:master Mar 11, 2017
@scottaddie scottaddie deleted the display_exception_message branch March 11, 2017 15:19
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.

3 participants