-
Notifications
You must be signed in to change notification settings - Fork 39
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
Added error message and exposes WASM error message #141
Conversation
@carrycooldude, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction. |
@carrycooldude, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed. |
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.
Thank you very much for your contribution @carrycooldude!
I added some notes about managing the case when the stderr
is configured to be printed in a specific file instead of the stderr
descriptor from the running process 😄
|
In this case, the error is related to the Also, I see you're using |
Did that too also ,
also, try to change to eprintln!() but getting error on that @Angelmmiguel |
@carrycooldude in this case, I believe the issue is on the following line: if let Some(&stderr_file) = stderr_file { Here, it's expecting that if let Some(file) = stderr_file.get_ref() { That if let Ok(mut file) = file.try_clone() {
// ...
} else {
eprintln!("{error}");
} I also noticed that you changed the |
@carrycooldude thanks for the changes! I enabled the CI for this PR and it's failing due to some linting issues. You can fix them using |
@carrycooldude, VMware has approved your signed contributor license agreement. |
hey @Angelmmiguel , As checks are cleared of this PR, can you merge this? |
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.
Changes LGTM! Thank you very much for your contribution @carrycooldude 😄👏
Thank You So Much for the support @Angelmmiguel , I will learn from you more 🙏 |
Reference to this issue: #131
Before sending a generic error, wws must print the Wasm backtrace in the terminal. The stderr is configurable, so the stderr_file (Option) may contain a file descriptor that should be used. If it's None, you can directly call eprintln! with the right message.