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

chore: print the launch error message to console #2304

Merged
merged 1 commit into from
May 20, 2020

Conversation

pavelfeldman
Copy link
Member

@pavelfeldman pavelfeldman commented May 19, 2020

@pavelfeldman pavelfeldman force-pushed the timeout1 branch 3 times, most recently from f5500df to 8ef11e7 Compare May 20, 2020 00:54
super();
this._launchOptions = options;
this._logger = new RootLogger(options.logger);
this._launchDeadline = TimeoutSettings.computeDeadline(options.timeout || 30000);
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not respect timeout: 0. You should only convert undefined into 30000.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

return result;
} catch (e) {
await this._closeOrKill(deadline);
logPolitely('=============== Process output during launch: ===============\n' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not add this to the error message instead? This way all the tooling and test runners will pick it up.

Copy link
Member Author

Choose a reason for hiding this comment

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

I could do that, but strictly speaking there is an exception message and I don't want to alter it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, did it.

@pavelfeldman pavelfeldman merged commit e558f05 into microsoft:master May 20, 2020
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