-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tools: use PrintCaughtException in the snapshot builder #38745
Conversation
This prints not only the error message but also the error source line and the stack trace wherever possible.
TryCatch bootstrapCatch(isolate); | ||
v8::MaybeLocal<Value> result = env->RunBootstrapping(); | ||
if (bootstrapCatch.HasCaught()) { | ||
PrintCaughtException(isolate, context, bootstrapCatch); |
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.
PrintCaughtException(isolate, context, bootstrapCatch); | |
PrintCaughtException(isolate, context, bootstrapCatch); | |
abort(); |
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.
There is already a result.ToLocalChecked();
below which should abort the process if there's an exception
Co-authored-by: Voltrex <62040526+VoltrexMaster@users.noreply.github.com>
Landed in 308ab8a |
This prints not only the error message but also the error source line and the stack trace wherever possible. PR-URL: #38745 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
This prints not only the error message but also the error source line and the stack trace wherever possible. PR-URL: #38745 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Doesn't land cleanly on v14.x-staging. |
This prints not only the error message but also the error
source line and the stack trace wherever possible.