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

Add error message to CALL/INFO #101

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Add error message to CALL/INFO #101

merged 1 commit into from
Feb 12, 2025

Conversation

acook
Copy link

@acook acook commented Feb 12, 2025

Previously CALL/INFO would give no indication of what the error was or even if there was one beyond setting the PID to zero. Now it includes the error message when encountering an error.

I pulled the code from f-stubs.c's Make_OS_Error() function. I would prefer to convert the REBVAL returned by Make_OS_Error() into a REBSER instead but I wasn't sure how to do so with the macro system.

Consider this a proof of concept if there is a better way.

@Oldes Oldes merged commit a4b1b30 into Oldes:master Feb 12, 2025
3 checks passed
@Oldes
Copy link
Owner

Oldes commented Feb 12, 2025

Merged, but I think it should be improved: Oldes/Rebol-issues#2635 (comment)

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