Page MenuHomeFreeBSD

lualoader: handle local module errors more gracefully
Needs ReviewPublic

Authored by kevans on Feb 12 2021, 10:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 3:03 PM
Unknown Object (File)
Sat, Mar 30, 6:20 PM
Unknown Object (File)
Mar 19 2024, 3:36 PM
Unknown Object (File)
Mar 15 2024, 4:00 PM
Unknown Object (File)
Mar 10 2024, 5:32 AM
Unknown Object (File)
Feb 25 2024, 3:28 AM
Unknown Object (File)
Jan 8 2024, 9:40 PM
Unknown Object (File)
Jan 8 2024, 12:04 PM
Subscribers
None

Details

Summary

Load the module and call it in protected mode so that we can bubble
up errors rather than breaking the system further.

Note that we cannot make any guarantees about the state of the
environment if an error occurred; changes may have still been partially
applied depending on the shape/size/position of the error.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36948
Build 33837: arc lint + arc unit

Event Timeline

kevans created this revision.

pcall(loadfile(...)) -> pcall(dofile, ...) to return a more useful error if
chunk loading happens to fail.