-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
f5500df
to
8ef11e7
Compare
src/server/browserServer.ts
Outdated
super(); | ||
this._launchOptions = options; | ||
this._logger = new RootLogger(options.logger); | ||
this._launchDeadline = TimeoutSettings.computeDeadline(options.timeout || 30000); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/server/browserServer.ts
Outdated
return result; | ||
} catch (e) { | ||
await this._closeOrKill(deadline); | ||
logPolitely('=============== Process output during launch: ===============\n' + |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, did it.
#2298