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

Improve error handling for MacOS in require.lua #1190

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

Not-A-Normal-Robot
Copy link
Member

@Not-A-Normal-Robot Not-A-Normal-Robot commented Dec 28, 2024

Sometimes when package.loadlib fails to load a library, it returns nil, so we should display its second and third returned values that may contain more error information.

Shoutouts to @lu.a.lum from the Discord for helping me investigate how to fix the CCloader error on Mac, and in the process, figuring out a way to improve the error messages returned by require.lua

Sometimes when package.loadlib fails to load a library, it returns nil, so we should display its second and third returned values that may contain more error information.
@MrZ626 MrZ626 merged commit eee7ceb into main Dec 28, 2024
8 checks passed
@MrZ626 MrZ626 deleted the macos-require-better-error-handling branch December 28, 2024 11:41
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